RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRemotableTypeRegistry.VariantToInfo Method

Returns the TypeInfo pointer for the type of a specified Variant's data.

Pascal
function VariantToInfo(const V: Variant; TryAllSchema: Boolean): PTypeInfo;
C++
__fastcall PTypeInfo VariantToInfo(const Variant V, Boolean TryAllSchema);

VariantToInfo returns the TypeInfo pointer of the scalar type that represents the value of a Variant. If the Variant's value is not a scalar type that can be marshaled without using a registered object or type, VariantToInfo raises an ETypeRegistryException exception. 

V is the Variant for which you want the corresponding TypeInfo pointer. 

TryAllSchema specifies whether VariantToInfo should check for corresponding scalar type definitions in the XML schema associated with this application, or whether it should check all the possible sets of XML schema types that are defined in the xmlschema unit. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!