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