Table of Contents

VarToEnumInteger Method

Converts a variant value to an enumerated integer. The variant may hold the enumeration name as a string (e.g., 'alClient').

Remarks

PropType must receive the RTTI type information for the enumerated type so that the string name can be resolved to the corresponding integer value.

Syntax

Unit: atScript

function VarToEnumInteger(v: Variant; PropType: PTypeInfo): Integer;

Parameters

<-> Parameter Type Description
v Variant
PropType PTypeInfo