Repeat for each loop assistance, please.

yoy yoy at comcast.net
Sat Aug 2 23:05:00 EDT 2003


I have the following loop statement:

repeat for each line gameLine in fld "gamelist"

I need to obtain the line number for the current iteration. I'm error
checking for the number of items in gameLine and if it isn't equal to 5, I
want to raise an answer dialog and stop the script, then hilight that line
in fld "gameList".

The other problem is that the variable might be 6 with the first 5 items
isolated and the 6th item examined under different circumstances, ala
checking a lotto game with or without a bonus ball number.

It has only been two days of my trial.

What can I query to get the iteration number of this loop?

Perhaps I'd be better off using a different repeat construct?

A mac hypercard stack "Balls!" and perl script "PERLotto" that do this lotto
ticket checking are available at http://mywebpages.comcast.net/foxcat

Thanks,

Andy






More information about the use-livecode mailing list