CrystalClear Syntax

For loop


The For loop provides a compact way to execute one or more statements a specified number of times. This block of statements will be executed until "i" is equals to the defined "endvalue".

A For loop can be left with the Exit For statement.

Usage:

For i := (startvalue) To (endvalue) Step (stepsize) Do (
    (statement)
);

Examples:

Local NumberVar i;
StringVar string := "";

For i := 1 To 10 Step 1 Do (
    string := string + "a"
);

i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to crystalclear@inetsoftware.de.

This page is: very poor very good
Comment: