At 1:05 PM -0400 4/25/05, you wrote:
Hi, all.

I have an existing local variable by name "xyz".

I have a list containing the message "This is" && xyz && "in context."

When I call it, the complete phrase arrives as a string.

I need a way to 'interpret' the 'xyz' portion of the message as the local variable.

If I understand your question, you need to get the middle part back out?

xyz = "some stuff"
arrivalString = "This is some stuff in context."

numWords = arrivalString.word.count
extractedContents = arrivalString.word[3..numWords-2]

put extractedContents
-- "some stuff"

& if you're trying to get a number back, then use the value of extractedContents

hth
-Buzz



Any suggestions? Thanks, in advance.

Steve Taylor

[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 lingo-l@penworks.com (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 lingo-l@penworks.com (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to