gettingstarted
[Top] [All Lists]

Re: (no subject)

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

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>

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