Repeat With


repeat with <variable> = [<startNumber>
to <endNumber>] | [<start> down to <end>] end repeat


The repeat with control statement executes part of a script <endNumber>-<startNumber>+1 times, starting with <variable>=<startNumber> and adding 1 to <variable> for each execution of the loop until <variable>=<endNumber> . The loop can also be exited via the exit repeat, exit messageName, exit to top, or pass messageName command.


The following handler, when issued from within a script, deletes the contents of all text fields located on a card: repeat with x=1 to the number of fields put empty into field x
This text has been mechanically extracted from the Oracle Media Objects MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.