TValueHelper.TryConvert Method
Overloads
| 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. |
Tries to convert the stored value. Returns false when the conversion is not possible.
Delphi
function TryConvert(targetType: PTypeInfo; var targetValue: TValue): Boolean
Parameters
- targetType
- PTypeInfo
- targetValue
- TValue
Returns
Boolean
Tries to convert the stored value using the specified format settings. Returns false when the conversion is not possible.
Delphi
function TryConvert(targetType: PTypeInfo; var targetValue: TValue; const formatSettings: TFormatSettings): Boolean
Parameters
- targetType
- PTypeInfo
- targetValue
- TValue
- formatSettings
- TFormatSettings
Returns
Boolean