4 Replies Latest reply: Mar 9, 2012 11:29 AM by Babeteflonblue RSS

    How to get the value from textInput Component to perform calculation?



      I need some help here...I'm trying to get the value of user input from the TextInput Component which is the age, height and weight to calculate the bmr and display the result in member("result").text.

      How am i suppose to let the integer pass through in order for me to perform calculation? Would appreciate if anyone can help me out with this, thanks!


      Below are the formula :

      The Harris Benedict equation estimates BMR:

      For women: (9.56 x w) + (1.85 x h) – (4.68 x a) + 655

      For men: (13.75 x w) + (5 x h) – (6.76 x a) + 66