Calculator using Listview and exponents - need a leg-up starting my project

Hi there! First time user of the forum. I have been working on a project for a few weeks ( most of the time spent watching coding bus, searching google and the forums ) and I am stuck staring at the options - I know exactly what I want to do, just not finding the ways on here. I have a successful working copy on excel I did, now I want to make it more portable in app form.

Basically, a (not so) simple calculator where you enter the weight in Kg, select dog/cat.

  • Each species has an initial calculation to show the RER. This is supposed to show in the RER_answer, I get an error on the emulator
  • When dog or cat is selected, it opens the selected factors in Listview. (I was excited when this worked out, and with the active button highlights!! I may add a reset to clear back to default later on)
  • You select the factor option, it is then supposed to calculate the RER answer by the selected factor (RER_answer * 1.8)=DER
  • The DER-answer will either be a range due to the factor range, or a single number ( in which will populate both ranges with the same number )

In my project, I was starting with baby steps just seeing if the RER showed.. nope. 3 hours later of searching, Im stuck. I have not even explored how to do my factors in the Listview... probably if/then blocks.

I did disable the cat calculation block, I was not sure if it was conflicting with the same answer spot. At least until I get this figured out

Looking for some hints to help me along the way. Thank you in advance!

VetRER.aia (20.4 KB)

In the global initialization change the input numbers only to inputKG to text

You need to do calculation with numbers but you are trying to do maths with a condition. Numbers only mean this inbox will accept only numbers. Set this condition from input_KG type to numner only (but you did it already)

Morever in the initialization do not initialize this variable with input_KG because whereever you call this global variable it will show initialized value only and not entered value Instead replace it with just input_KG text block. It wont throw error