| 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 18:17:49 -0800 |
| Delivered-to: | gettingstarted at lists dot realsoftware dot com |
| References: | <BAY2-F1A1FDE9F608AC8F8A2EFDDA7B0 at phx dot gbl> |
On Jan 29, 2005, at 5:56 PM, Lennox Jacob wrote: 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. 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> _______________________________________________ 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> |
|---|---|---|
| ||
| Previous by Date: | Re: (no subject), Lennox Jacob |
|---|---|
| Next by Date: | Re: Reading in text from a file into a ListBox with 2 columns, Paul Young |
| Previous by Thread: | Re: (no subject), Lennox Jacob |
| Next by Thread: | Re: (no subject), GAmoore |
| Indexes: | [Date] [Thread] [Top] [All Lists] |