> > I see, w and H are input by the user into EditFields Wt and Ht
>
> Then you need to get those values and do the math with them.
>
Of course he needs values. I thought he had left that part of the code out
and was abbreviating it.
For debugging just do this
W = 100
H = 60
BMI = W/(H*H)
bmi.text = format( BMI, "#.###")
Then you can worry about how you get values into those variables..e.g have an
editfield...
W = val( ef_w.text)
H = val(ef_h.text)
BMI = W/(H*H)
bmi.text = format( BMI, "#.###")
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>
|