TValueHelper Helper
Definition
type TValueHelper = record helper for TValue
Properties
| Kind |
Specifies the type kind of the stored value. |
| ValueConverterCallback | |
| ValueType |
Returns the TRttiType of the stored value. |
Methods
| &op_Equality(TValue, TValue) | |
| &op_Implicit(TGuid) | |
| &op_Inequality(TValue, TValue) | |
| AsPointer | |
| AsType(PTypeInfo, Void) | |
| AsType<T> |
Casts the currently stored value to another type. |
| AsTypeRelaxed(PTypeInfo, Void) |
Casts the currently stored value to another type. |
| Cast(PTypeInfo) |
Casts the currently stored value to another type. |
| CompareTo(TValue) |
Compares to another TValue. |
| Convert(PTypeInfo) |
Converts the stored value to another type. |
| Convert(PTypeInfo, TFormatSettings) |
Converts the stored value to another type using the specified format settings. |
| Convert<T> |
Converts the stored value to another type. |
| Convert<T>(TFormatSettings) |
Converts the stored value to another type using the specified format settings. |
| Equals(TValue) |
Checks for equality with another TValue. |
| Free |
If the stored value is an object it will get destroyed/disposed. |
| From(TObject, TClass) | |
| FromFloat(PTypeInfo, Extended) | |
| FromVarRec(TVarRec) |
Returns a TValue that holds the value that was passed in a TVarRec. The TypeInfo of the returned TValue depends on the VType of the passed TVarRec. |
| FromVariant(Variant) | |
| GetArray |
Returns the array content. |
| GetNullableValue |
Returns the stored nullable value or |
| IsBoolean |
Checks whether the stored value is a boolean type. |
| IsFloat |
Checks whether the stored value is a float type. |
| IsInstance |
Checks whether the stored value is an object or interface reference. |
| IsInterface |
Checks whether the stored value is an interface reference. |
| IsNumeric |
Checks whether the stored value is a numeric type. |
| IsString |
Checks whether the stored value is a |
| IsType(PTypeInfo) | |
| IsVariant |
Checks whether the stored value is a |
| SetNullableValue(TValue) |
Sets the stored value of a nullable. |
| ToObject |
Returns the stored value as TObject. |
| ToString |
Returns the string representation of the stored value. |
| ToType<T> |
Converts stored value to the specified type. |
| ToType<T>(TFormatSettings) |
Converts stored value to the specified type using the specified format settings. |
| ToVariant |
Returns the stored value as Variant. |
| TryAsType(PTypeInfo, Void) | |
| TryCast(PTypeInfo, TValue) | |
| TryConvert(PTypeInfo, TValue) |
Tries to convert the stored value. Returns false when the conversion is not possible. |
| TryConvert(PTypeInfo, TValue, TFormatSettings) |
Tries to convert the stored value using the specified format settings. Returns false when the conversion is not possible. |
| TryGetLazyValue(TValue) |
Tries to get the stored value of a lazy. Returns false when the lazy was not assigned. |
| TryGetNullableValue(TValue) |
Tries to get the stored value of a nullable. Returns false when the nullable is null. |
| TryToType<T>(T) |
Tries to convert the stored value. Returns false when the conversion is not possible. |
| TryToType<T>(T, TFormatSettings) |
Tries to convert the stored value using the specified format settings. Returns false when the conversion is not possible. |
| UpdateFormatSettings |
Update the internal TFormatSettings record. |