Put value(x) into tNumberOfRecords ? isn't exactly what the example I mentioned does. (and this is where my dictionary docs seem to be wrong)
Say you have an unspecified number of "things" you want to put into their own variables (yeah, I know, use an array, but for example purposes arrays don't exist) So, if you want to put each line of a random number of lines into its very own variable, this is where the example I cited comes in. *put 1 into tcounter* *repeat for each line theLine in theData* *do "put theData into myVar" & i* *add 1 to tcounter* *end repeat* * * This will put the first line into myVar1 line 2 into myVar2 etc on down the line. The example in the dictionary says do "put" && x && "into tNumberOfRecords" & x *-- might become "put 3 into* * tNumberOfRecords" * The comment explanation misses the value of x being part of the newly created variable name. So if x was 3, it would put 3 into tNumberofrecords3 And as bvg said, a do script can be a real full script. _______________________________________________ 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