System.Rtti.TValue.TryAsOrdinal
Delphi
function TryAsOrdinal(out AResult: Int64): Boolean;
C++
bool __fastcall TryAsOrdinal(/* out */ __int64 &AResult);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Rtti.pas System.Rtti.hpp |
System.Rtti | TValue |
Description
Tries to cast the currently stored value to an Int64 value.
Call TryAsOrdinal to try to convert the stored value to an Int64 value. TryAsOrdinal requires one out parameter, AResult, in which the casted value will be placed. TryAsOrdinal returns true if the conversion succeeded, and false otherwise.