Table of Contents

TCodeForStatement Class

Represents a for..to or for..downto loop statement.

Syntax

Unit: Bcl.Code.MetaClasses

TCodeForStatement = class(TCodeStatement);

Constructors

Name Description
Create Creates a for loop statement with the specified components.

Properties

Name Description
VarName Gets or sets the loop variable name.
InitialExpression Gets or sets the initial value expression.
FinalExpression Gets or sets the final value expression.
Statements Gets the statements in the loop body.
Descending Indicates whether the loop counts downward (downto).
DeclareVar Indicates whether the loop variable is declared inline.