Table of Contents

TCodeMemberMethod.DeclareVar Method

Declares a local variable in the method body.

Syntax

Unit: Bcl.Code.MetaClasses

function TCodeMemberMethod.DeclareVar(const AName: string; const AType: string): TCodeVarDeclaration;

Parameters

<-> Parameter Type Description
const AName string The variable name.
const AType string The variable type name.

Returns

The created TCodeVarDeclaration instance.

See also