record.find('-');
repeat
if record.age = 45 then
break;
until record.next <=0;
And the syntax requires that you use CurrReport.BREAK (not case sensitive). If you leave off the CurrReport. prefix, you will get the error message, namely the compiler asking you to define the unknown variable "break".
smile always shona That which you seek inside is that which you find outside
Answers
In other cases: can't you create a valid condition in the WHILE statement that make the loop end?
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community
I don't want to end the loop but a specific step at a condition and a loop continue.
use Break with a specific condition.
if (condition) then
break;
record.find('-');
repeat
if record.age = 45 then
break;
until record.next <=0;
And the syntax requires that you use CurrReport.BREAK (not case sensitive). If you leave off the CurrReport. prefix, you will get the error message, namely the compiler asking you to define the unknown variable "break".
shona
That which you seek inside is that which you find outside
RIS Plus, LLC