You could factor it. First a movie script:
on qr psStr
lbLook = TRUE
repeat while lbLook
liOffset = offset("'", psStr)
lbLook = (liOffset > 0)
if lbLook then put QUOTE into char liOffset of psStr
end repeat
return psStr
end
Then...
myList = [qr("getUserName('bill')"), qr("getUserName('sam')")]
put myList
-- ["getUserName("bill")", "getUserName("sam")"]
Then...
do myList[1]
put the result
-- "bill"
And...
do myList[2]
put the result
-- "sam"
-----Original Message-----
From: the nightboy [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 2:46 PM
To: [EMAIL PROTECTED]
Subject: <lingo-l> AN ODD string ISSUE
In javascript there are two different types of quotes(" & ')
The reason I ask is that I am trying to save a function as a list element
to be used later such as:
myList = ["getUserName("bill")"]
so then I could call this:
do(myList[1])
how would I save the element to the list so that it would contain the
quotes?
In javascript I could do this:
"getUserName('bill')"
is there something similar?
Brian Douglas (:ub)
============================================================================
AS/L/JS
6'2" 170lbs. eyes:bwn hair:bwn nose hair:well groomed
Imaginary Studio
212-239-4393 x 204
http://www.imaginarystudio.com --check it out!
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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/LUJ/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!]