Appropriate syntax for referencing objects in a loopingstructure?

Ken Ray kray at sonsothunder.com
Sat Feb 21 21:25:19 EST 2004


> > repeat with i = 1 to 3
> > 	set the angle of graphic "pointer" & i to rotAngle
> > end repeat

Personally, I like to wrap parentheses around this kind of construct to
make it easier to read:

  repeat with i = 1 to 3
    set the angle of graphic ("pointer" & i) to rotAngle
  end repeat

But whatever floats your boat... :-)

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/ 




More information about the use-livecode mailing list