Share this page

# lrc_Get<Type-Name>Array_by_refFromVariant

Array Types and Functions

Extracts an array of Type-Name from a pointer reference in a variant.

<Type-Name>lrc_Get<Type-Name>Array_by_refFromVariant( const VARIANT* var );

Var A pointer to a variant.

The lrc_Get<Type-Name>Array_by_refFromVariant family of functions extracts an array of the type given in Type-Name from a pointer reference in a variant.

The calls include:

VARIANT lrc_GetShortArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetUshortArray_by_refFromVariant( const VARIANT* var );

VARIANTlrc_GetCharArray_by_refFromVariant( const VARIANT* var );

VARIANTlrc_GetIntArray_by_refFromVariant( const VARIANT* var );

VARIANTlrc_GetUintArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetUlongArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetByteArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetLongArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetFloatArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetDoubleArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetBoolArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetScodeArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetCurrencyArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetDateArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetBstrArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetCoObjectArray_by_refFromVariant( const VARIANT* var );

VARIANT lrc_GetDispObjectArray_by_refFromVariant( DispObjectArray array );

VARIANT lrc_GetVariantArray_by_refFromVariant( DispObjectArray array );

## Return Values

lrc Return Values

## Parameterization

Parameterization is not applicable to this function.

## Example

This example gets a short integer array from a variant by reference:

Copy code

            VARIANT var;
            ShortArray array0;
            ShortArray array1 = 0;
            array0 = Create1DShortArray(0, 5);
            PutElementIn1DShortArray(array0, 0, lrc_short("10"));
            PutElementIn1DShortArray(array0, 1, lrc_short("9"));
            PutElementIn1DShortArray(array0, 2, lrc_short("8"));
            PutElementIn1DShortArray(array0, 3, lrc_short("7"));
            PutElementIn1DShortArray(array0, 4, lrc_short("6"));
            P1 = lrc_variant_ShortArray_by_ref(array0);
            array1 = lrc_GetShortArray_by_refFromVariant(&var);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: