Data.DBXJSONReflect.TJSONUnMarshal.StringToTValue
Delphi
function StringToTValue(Value: string; typeInfo: PTypeInfo): TValue;
C++
System::Rtti::TValue __fastcall StringToTValue(System::UnicodeString Value, System::Typinfo::PTypeInfo typeInfo);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Data.DBXJSONReflect.pas Data.DBXJSONReflect.hpp |
Data.DBXJSONReflect | TJSONUnMarshal |
Description
Converts a string into a TValue, based on type information.
Value
represents the string value.
typeInfo
is the run-time type information to be converted into.
An exception is raised if the conversion is not possible.