Microsoft SDK for Java

fromVariantArray

This method of the SafeArray Class initializes SafeArray elements from a Java array.

Syntax

public void fromVariantArray(Variant ja[]);

If the SafeArray is multidimensional, it is treated as if it were a single linear array stored in column order. No matter what the index of the lower bound of the SafeArray is, the first element is initialized from element zero of the Java array.

If the Java array is shorter than the number of SafeArray elements, the remaining SafeArray elements are left unmodified. If the Java array is longer than the number of SafeArray elements, the extra elements are ignored.

Note   Although Variantjsdk_ref_com_Variant methods can operate on any SafeArray type, it is usually much more efficient to use the specific method for the element type. This is true even if the SafeArray is a SafeArray of Variants.

Parameters

ja The Java array that contains the new values.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.