TurboDB VCL Component Library



Previous  Top  Next

Retrieves the numeric value for an enumeration constant.

Delphi syntax:

function GetEnumValue(FieldNo: Integer; const EnumStr: string): Integer;

C++ syntax:

int __fastcall GetEnumValue(int FieldNo, const AnsiString EnumStr);


Call GetEnumValue to find out, which numeric value is assigned to a given enumeration constant. This function is used, if a TurboDB database table has a column of enumeration type.