Table of Contents

TCodeForEachStatement Class

Represents a for..in loop statement.

Syntax

Unit: Bcl.Code.MetaClasses

TCodeForEachStatement = class(TCodeStatement);

Constructors

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

Properties

Name Description
VarName Gets or sets the iteration variable name.
Expression Gets or sets the collection expression to iterate over.
Statements Gets the statements in the loop body.
DeclareVar Indicates whether the iteration variable is declared inline.