7.67.52015-05-06

Exit (procedure)

Exits from a for...endfor or repeat...until loop.

Syntax

exit()

Argument

None

Code Sample Example

This example shows how to break from a loop when a specific word, in this case ’Invoice,’ is found somewhere on the data page.


define(&x,integer,1)
for(&x,1,1,&current.lpp)
  if(pos('Invoice',@(&x,1,80))>0)
    exit()
  endif
endfor()