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
DeclareVar Indicates whether the loop variable is declared inline.
Descending Indicates whether the loop counts downward (downto).
FinalExpression Gets or sets the final value expression.
InitialExpression Gets or sets the initial value expression.
Statements Gets the statements in the loop body.
VarName Gets or sets the loop variable name.