Repeat loop index

Dar Scott dsc at swcp.com
Mon Jul 14 19:15:01 EDT 2003


On Monday, July 14, 2003, at 05:58 PM, Mark Brownell wrote:

> This:
>
>   put 1 into ic
>   put 1 into ix
>   repeat while ic <= textCryptLength
>     put char ix to (ix + 3) of cryptThisText into strXL
>     put char (ix + 4) to (ix + 7)  of cryptThisText into strXL
>
> might works as:
>
> repeat for each char tMychunk of cryptThisText  step 8
>     put char 1 to 4 of tMychunk into strXL
>     put char 5 to 8 of tMychunk into strXR

If that does anything, I'd doubt it will chunk more than one char at a 
time.  Try a small test.

And the good news is that you don't need it.

The counting from the front (or back) does not apply to char, only to 
other chunks.  Char chunking is fast and direct.

Dar




More information about the use-livecode mailing list