System.JSON.TJSONString.AsTValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AsTValue(ATypeInfo: PTypeInfo; var AValue: TValue): Boolean; override;

C++

virtual bool __fastcall AsTValue(System::Typinfo::PTypeInfo ATypeInfo, System::Rtti::TValue &AValue);

Properties

Type Visibility Source Unit Parent
function protected
System.JSON.pas
System.JSON.hpp
System.JSON TJSONString

Description

Fills the specified AValue instance of TValue with the value of this JSON string value, encoded using the specified type. It returns True if the specified type is supported or False otherwise.

Supported TTypeData types are:

Supported Types Description

tkChar
tkWChar
tkEnumeration
tkFloat
tkInt64
tkInteger
tkLString
tkString
tkUString
tkWString

Define types into which to encode a string to fill AValue.
Notice that tkChar is not supported for the NEXTGEN (mobile) compilers.

tkClass

Fills AValue as is.

See Also