Enigma: how to quote zero
yoy
yoy at comcast.net
Fri Feb 11 23:39:33 EST 2005
Here's a handler I put into the card script that does your script to a
variable first, then the variable into a button script...
on doit
-- global newButtonname
put "if the number of chars of item 1 of retro = 1 then" into line 1 of
tempVar
put "put" && quote & 0 & quote && "before retro" into line 2 of tempVar
put "end if" into line 3 of tempVar
put "put" && quote & 0 & quote && "into char 5 of retro" into line 4 of
tempVar
put "put short name of me into ikon" into line 5 of tempVar
put "put ikon after field retro" into line 6 of tempVar
set the script of button "One" to tempVar --use newButtonname instead of
"One" for other buttons
end doit
Create a button named One then in the message box type doit and return then
check the button's script.
Not an expert solution because I'm not an expert.
Clear or cloudy?
Andy Burns
----- Original Message -----
From: "Richard Gaskin" <ambassador at fourthworld.com>
To: "How to use Revolution" <use-revolution at lists.runrev.com>
Sent: Friday, February 11, 2005 9:44 PM
Subject: Re: Enigma: how to quote zero
> James Steiner wrote:
> >>>> put format("put \"0\" before xyz") into line 8
> >
> >
> > Wouldn't
> >
> > put ( "put " & quote & "0" & quote & " before xyz" ) into line 8
> >
> > also work, without having to resort to using a fancy function like
format??
>
> Or my favorite fancy function, q:
>
> function q s
> return quote & s & quote
> end q
>
>
> put q(0) before yz
>
>
> --
> Richard Gaskin
> Fourth World Media Corporation
> ___________________________________________________________
> Ambassador at FourthWorld.com http://www.FourthWorld.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list