On Jan 29, 2005, at 4:34 PM, Lennox Jacob wrote:
Thanks GAmoore,
Tried it, like
Dim W, H, BMI as double
BMI = W/(H*H)
wt.text = format( W, "#.#")
ht.text = format( H, "#.#")
Index.text = format(BMI, "#.#")
BMIPushButton.enabled = False
'Gets NAN(000).
Any suggestions?
Where are the values for W and H coming from?
When you Dim them, they are auto-initialized to 0.
So, the line that calculates BMI is performing 0/0 which is NAN (Not A
Number)
_______________________________________________
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>
|