Sir Brando
New Member
Alright, new to B4A but fluent in a wide range of basic. I have done some digging but I'm afraid I don't know exactly what I'm looking for so any help or redirection would be great. Please bear with me.
This is what I am trying to do. This may be confusing but I’ll give an example at the end. I need to enter a number or select a number from a certain set of numbers. I then need a number corresponding to that number to be loaded from some sort of database, array or external file etc. I will copy whatever method I use for this to have multiple selections. I will use simple math to add these values up for a total.
The application for this deals with weights and moments for balancing aircraft. This is why it is so vague; don’t want to get into the weeds with details. I’ll give the best example I can though.
So my external data (or internal if I’m advised) is basically several charts of weights and corresponding moments (I have a lot of data). For example one chart is 0-3200 in increments of 100. So I’ve got 32 values to choose from. Visually, these need to be displayed in hundreds in decimal format (.1=100, 3.2=3200). I initially thought of just entering in the decimal and doing the math (so user enters 1.8 and 1800 loads as the variable) but I am open to dropdowns. Whatever weight is selected, the corresponding value is set into another variable. So if the user selects 2.5, 2500 will be loaded as the weight variable and 2693 will be loaded as the moment variable. Again, I will do this several times and add up totals at the end.
Another part of this will be loading a standard load into these selections. If the user selects load 1, I would like 1.0, 2.3, and 3.2 loaded into the above selections.
This seems like a lot explaining it but I’m just trying to paint the best picture for you guys. Unfortunately I really don’t have any guidance so far and don’t have any code to give you guys. I do have the designer layout that I will take a snap of later and attach to give sort of a visual representation of what I’m trying to do. Let me know if I'm overestimating the power of B4A as well.
Just to be clear, I’m not asking anyone to do this for me, just asking for some direction. Let me know if I need to give more details or attach data. Any help is appreciated.
This is what I am trying to do. This may be confusing but I’ll give an example at the end. I need to enter a number or select a number from a certain set of numbers. I then need a number corresponding to that number to be loaded from some sort of database, array or external file etc. I will copy whatever method I use for this to have multiple selections. I will use simple math to add these values up for a total.
The application for this deals with weights and moments for balancing aircraft. This is why it is so vague; don’t want to get into the weeds with details. I’ll give the best example I can though.
So my external data (or internal if I’m advised) is basically several charts of weights and corresponding moments (I have a lot of data). For example one chart is 0-3200 in increments of 100. So I’ve got 32 values to choose from. Visually, these need to be displayed in hundreds in decimal format (.1=100, 3.2=3200). I initially thought of just entering in the decimal and doing the math (so user enters 1.8 and 1800 loads as the variable) but I am open to dropdowns. Whatever weight is selected, the corresponding value is set into another variable. So if the user selects 2.5, 2500 will be loaded as the weight variable and 2693 will be loaded as the moment variable. Again, I will do this several times and add up totals at the end.
Another part of this will be loading a standard load into these selections. If the user selects load 1, I would like 1.0, 2.3, and 3.2 loaded into the above selections.
This seems like a lot explaining it but I’m just trying to paint the best picture for you guys. Unfortunately I really don’t have any guidance so far and don’t have any code to give you guys. I do have the designer layout that I will take a snap of later and attach to give sort of a visual representation of what I’m trying to do. Let me know if I'm overestimating the power of B4A as well.
Just to be clear, I’m not asking anyone to do this for me, just asking for some direction. Let me know if I need to give more details or attach data. Any help is appreciated.