repeat for each line theLine in theFieldData put your field data into a variable trust me put item 1 of theLine into...
do not alter the contents of theFieldData inside the repeat loop as you will hose it. This form of repeat parses the memory so any change in the original IN argument screws up the parsing. Bob On Feb 16, 2012, at 9:14 PM, Michael Chean wrote: > 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 > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode