How cool. Thanks. Can you explain why this works?

----- Original Message -----
From: "Andy Fuchs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 25, 2002 5:31 PM
Subject: Re: <lingo-l> Balky Behaviour


> at 25.07.2002 21:32 Uhr, [EMAIL PROTECTED] wrote:
>
> Hi George,
>
> maybe you try a oneliner:
>
> on mouseUp
>  the text of field "s1" = ""& (5500 - value(the text of field "s1"))
> end
>
> > Can someone please tell me why this script doesn't work correctly? When
I
> > press the button the first time, 5500 is entered as it is supposed to,
when
> > I hit the button the second time, no change. What am I missing here?
> >
> > Thanks in advance,
> >
> > George Carlile
> > [EMAIL PROTECTED]
> >
> > on mouseUp
> > set savePrecision = the floatPrecision
> > set the floatPrecision = 0
> > if field "s1" = "0" then
> >   put "5500" into field "s1"
> > else
> >   if field "s1" = "5500" then
> >     put "0" into field "s1"
> >     set the floatPrecision = savePrecision
> >   end if
> > end if
> > end
>
> -- Andy Fuchs
> -- silent movie media
> -- mailto:[EMAIL PROTECTED]
> -- http://www.silent-movie-media.com
>
> [To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is
for learning and helping with programming Lingo.  Thanks!]
>

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to