Set method: Array class

Syntax

Set(index)

Description

Use the Set method to set the value of the index element of an array. This method is used with the Java PeopleCode functions, instead of using subscripts (which aren't available in Java.)

Using this method is the same as using a subscript to reference an item of an array. In the following example, the two lines of code are identical:

&MyArray[8] = &MyValue;
&MyArray.Set(8) = &MyValue;

Parameters

Parameter Description

index

The array element to be accessed.

Returns

None.