Microsoft SDK for Java

setVariants

This method of the SafeArray Class sets multiple elements of a SafeArray. If the SafeArray is multidimensional, it is treated as if it were a single linear array stored in column order. No matter where in the SafeArray the first element is located, that location is called index zero for the purposes of this method. The first element to be set in the SafeArray is located sa_idx elements away from index zero.

Syntax

public void setVariants(int sa_idx, int nelems, Variant ja[], int ja_start);

Note   Although the 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

sa_idx The index of the first element to set. This index is always zero-based.
nelems The number of elements to set.
ja The Java array that provides the values.
ja_start The index of the first element to use in ja.

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