Share this page

# Example: lrc_Get<Type-Name>Array_by_refFromVariant

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

            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 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: