Click or drag to resize

Array.__SetElement Method

Get/Set array elements with a ZERO based array index.

Namespace:  XSharp
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.3
Syntax
 METHOD __SetElement(
	u AS USUAL,
	index PARAMS LONG[]
) AS USUAL
View Source

Parameters

u
Type: Usual
New element to store in the array at the position specified
index
Type: Int32
This indexer is ZERO based, however in your PRG code you can use ONE based array indices. The compiler will recognize that this property is part of a type that implements a special interface and will subtract one from the indexes, unless the /az compiler option is enabled.

Return Value

Type: Usual
The new element
Remarks
In your PRG code you can assess the elements with a ONE based index. The compiler will recognize that this property is part of a type that implements a special interface and will subtract one from the indexes, unless the /az compiler option is enabled.
See Also