A shorter way to express this?

Michael Chean mp.chean at gmail.com
Fri Feb 17 00:14:42 EST 2012


Hi:

I'm watching the tutorials (rewatching #3) and I was wondering whether some 
statements can be shortened.

For instance 

repeat with x = 1 to the number of lines in field data
     put item 1 of line x of field data into tDataArray[x]["first name"]
     put item 2 of line x of field data into tDataArray[x]["last name"] 
     ...
end repeat

is there something like:
     with field data
         put item 1 of line x into tDataArray[x]['first name']
        ...
     endwith 

Just wondering.

Mike


More information about the use-livecode mailing list