gettingstarted
[Top] [All Lists]

Re: (no subject)

To: gettingstarted at lists dot realsoftware dot com
Subject: Re: (no subject)
From: "Lennox Jacob" <lenpartico at hotmail dot com>
Date: Sun, 30 Jan 2005 01:56:02 +0000
Delivered-to: gettingstarted at lists dot realsoftware dot com
I see, w and H are input by the user into EditFields Wt and Ht

From: Stuart Malin <stuart at ossayu dot com>
Reply-To: Getting Started <gettingstarted at lists dot realsoftware dot com>
To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: (no subject)
Date: Sat, 29 Jan 2005 17:30:18 -0800


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>

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

_______________________________________________
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>

<Prev in Thread] Current Thread [Next in Thread>