setting pointer location

Cubist at aol.com Cubist at aol.com
Wed Jan 1 16:03:01 EST 2003


sez dvglasgow at aol.com
>>...and while I am on, how do you replicate the 'step' parameter in Hypercard
>>repeats?  I want to put a return after every third line between lines 3 and
>>168 of a field.

sez jeanne at runrev.com:
>This is in 2.0.
   In the meantime, you can fake it a couple of ways...

  repeat with K1 = 1 to 10000
    if ((K1 mod 3) = 0) then next repeat
    -- only executes the loop when K1 is an integer multiple of 3
    DoAllKindsOfStuffHere
  end repeat

  repeat with K1 = 1 to 10000
    put K1 * 3 into K2
    -- now use K2 as the variable in the loop, *not* K1
    DoAllKindsOfStuffHere
  end repeat

  Hope this helps...



More information about the use-livecode mailing list