realbasic-nug
[Top] [All Lists]

Re: Function Help

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Function Help
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 31 Aug 2004 16:50:48 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <6DA4EC73-FB5F-11D8-836E-000A95CC8426 at lumigen dot com> <E28B45E8-FB60-11D8-B88E-000A95E5406A at gsco dot de> <E6865B83-FB62-11D8-836E-000A95CC8426 at lumigen dot com> <B12FCE92-FB71-11D8-9661-000A95983FBE at ljug dot com> <DBB7C580-FB7C-11D8-836E-000A95CC8426 at lumigen dot com>
At 2:37 PM -0400 8/31/04, Jason Boes wrote:

Well I don not know anyone that does programming and I have been trying to figure this out myself. What am I doing wrong. My goal is to enter a minimum weight in a textfield. Then compare that to the weight that the scale reports. If the reported weight is less than the weight value in the textfield I want it to give an alarm. The code I have is in my first post. I have done a few examples from resexcellence and I have the books by Matt Neuburg and Michael Swaine.

You ought to go through the tutorial that comes with REALbasic; it will take you maybe an hour to do, but save you many hours of learning stuff the hard way.

(To return a value from a function, for example, you need to use the "return" statement -- Will was pointing out that your CutOffWeight function wasn't doing that.)

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'
_______________________________________________
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>