Share this page

# lrc_variant_<Type-Name>Array

Assignment to Variants

Assigns an array of Type-Name to a variant.

## Return Values

lrc Return Values

## Parameterization

You cannot use standard parameterization for any arguments in this function.

    VARIANT lrc_variant_<Type-Name>Array( <Type-Name>Array array );

Array | An array of the specified type.

The lrc_variant_<Type-Name>Array family of functions assigns an array of the type given in Type-Name to a variant.

The calls include:

    VARIANT lrc_variant_BoolArray(BoolArrayarray);

    VARIANT lrc_variant_BstrArray(BstrArray array);

    VARIANT lrc_variant_ByteArray(ByteArray array);

    VARIANTlrc_variant_CharArray(CharArray array);

    VARIANT lrc_variant_CoObjectArray(CoObjectArray array);

    VARIANT lrc_variant_CurrencyArray(CurrencyArray array);

    VARIANT lrc_variant_DateArray(DateArray array);

    VARIANT lrc_variant_DispObjectArray(DispObjectArray array);

    VARIANT lrc_variant_DoubleArray(DoubleArray array);

    VARIANT lrc_variant_ErrorArray(ErrorArray array);

    VARIANT lrc_variant_FloatArray(FloatArray array);

    VARIANTlrc_variant_IntArray(IntArray array);

    VARIANT lrc_variant_LongArray(LongArray array);

    VARIANT lrc_variant_ShortArray(ShortArray array);

    VARIANTlrc_variant_UintArray(UintArray array);

    VARIANT lrc_variant_UlongArray(UlongArray array);

    VARIANT lrc_variant_UshortArray(UshortArray array);

    VARIANT lrc_variant_VariantArray(VariantArray array);

## Example

This stores a FloatArray in a variant by reference.

            VARIANT var;

            FloatArray array0;

            FloatArray array1 = 0;

            array0 = Create1DFloatArray(0, 5);

            PutElementIn1DFloatArray(array0, 0, lrc_float("1.1"));

            PutElementIn1DFloatArray(array0, 1, lrc_float("20.02"));

            PutElementIn1DFloatArray(array0, 2, lrc_float("300.003"));

            PutElementIn1DFloatArray(array0, 3, lrc_float("4000"));

            PutElementIn1DFloatArray(array0, 4, lrc_float("50000"));

            var = lrc_variant_FloatArray(array0);

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