Crystal Reports for Eclipse Designer Guide

The syntax of the Option Loop

The syntax of the Option Loop is:
Option Loop maxIterations
Where maxIterations = the maximum number of times you want the condition to be evaluated per evaluation of a formula. It must be a positive integer.
For example:
//option loop example
option loop 256;
//make name upper case
Local StringVar outString;
Local StringVar inString := {Customer.CUSTOMER_NAME};
Local NumberVar i;
For i:=1 to Length(inString) do
     outString := outString + upperCase(inString[i]);
outString

If Customer.CUSTOMER_NAME is greater than 255, an error message will be shown: "A loop was evaluated more than the maximum number of times allowed."



SAP BusinessObjects
http://www.sap.com/sapbusinessobjects/
Support services
http://service.sap.com/bosap-support/
Product Documentation on the Web
http://help.sap.com/