On Feb 22, 2012, at 11:51 AM, Bob Sneidar wrote:

> I am constantly doing do! Don't you?

I used to use "do" a lot more than I do now… for example, if you have 12 fields 
named "MyField1" through "MyField12", instead of using:

repeat with x = 1 to 12
  do "put" && quote & "Hello" & quote && "into field" && quote & "MyField" & x 
& quote
end repeat

you can use this instead:

repeat with x = 1 to 12
  put "Hello" into field ("MyField" & x)
end repeat

It's a lot easier and doesn't bog down processing like using "do" does. There 
are definitely certain cases where you need to use "do", but this isn't one of 
them. 


Ken Ray
Sons of Thunder Software, Inc.
Email: [email protected]
Web Site: http://www.sonsothunder.com/  

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to