Tom,

You're nearly there. Based on your previous email, it sounds like you 
have the power to write the string any way you wish. If that's true, just 
remember to write the string out as a list.

Instead of: 

     AA = "1,2,3"

use 

     AA = "[1,2,3]"

Then you can say myList = value("AA")

You will be blown away at what this saves you. Many times before (quiz 
data, inventory lists, personnel data, etc.) I've had scenarios where 
building a list from a string takes 30 seconds--even 60 seconds--on a G4. 
But, as a final step the first time you do that, if you save that list as 
a text file, you can then use the above technique to create the list in a 
fraction of a second. You're using a list string instead of a normal 
string and just converting it directly into a list instead of building it.

Having said that, if you were asking, "is there a way to make a list from 
a string that must remain a normal string," there is no way to do that. 
That is, Lingo does not have something like the .split() method that 
JavaScript (for example) has.

Rich

On 1/28/01 3:27 AM, Tom Jacobs ([EMAIL PROTECTED]) sent:
>AA = [1, 2, 3]
>put value("AA")
>--[1, 2, 3]
>
>how can I create the list AA from the string "AA"?

[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!]

Reply via email to