System.Rtti.TValue.AsType
Delphi
function AsType<T>(const EmptyAsAnyType: Boolean = True): T;
C++
T __fastcall TValue::AsType(const bool EmptyAsAnyType)
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Rtti.pas SystemRtti.h |
System.Rtti | TValue |
Description
Casts the currently stored value to another type.
Call AsType to convert the stored value to another type. AsType returns a new, converted value if the conversion succeeded; otherwise, an exception is raised.
See Also
Code Examples