Salesforce

VariantAttr (Magic xpa 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

VariantAttr (Magic xpa 3.x)

Retrieves the Magic xpa attribute corresponding to the variant data type.

Syntax:

VariantAttr(variant value)

Parameters:

variant value – A BLOB value storing the variant data type. See Variant Storage Types.

Returns:

A single character for the variant data type, as shown below:

A – Alpha

N – Numeric

L – Logical

D – Date

T – Time

B – BLOB

O – OLE

V – Vector

0 – No value

Examples:

VariantAttr(B) returns A when the value of the variant is a VT_BSTR data type.

VariantAttr(C) returns N when the value of the variant is a VT_I4, or VT_R8 data type.

VariantAttr(D) returns 0 when the value of the variant is a non-supported data type.

Exceptions:

This function is not supported for Rich Client tasks.

See also:

How Do I Determine the Type and Corresponding Magic xpa Attribute of a Variant Value Belonging to a COM Object?

The Online Samples project (program CS05)

Reference
Attachment 
Attachment