SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎Value‎ > ‎

value.GetAt


Platform Objects


Description

Returns an array's element by an index if the variable is an array. This is only applicable if the contained variable is a one dimensional array.


Syntax


Function GetAt(index)


Parameters


index (input) - the index of the desired element


Return value


the element of the array at the index position


Example

Sample code

Dim val
UserVar.value = Array( "string1", "string2", "string3" )
val = UserVal.GetAt( 2 ) ' return value: string3

See also

Platform Objects and Methods
value.FormatNumeric
value.IsArray
Value Object