Memory.GetArrayData

variant Memory.GetArrayData ( 

number  Array,

number  Index,

number  Type )

Description

Get one element of your array.

Parameters

Array

(number) Address of your array (returned number from Memory.CreateArray).

Index

(number) Index of element that you want filled with value.

Type

(number) Set Type of your array that you created (this arg is optional).

Returns

(variant) Return value that stored in that position of array(if you create a int64 array this func returns string instead of number).

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

Example

array = Memory.CreateArray(ARRAY_INT, 2) Memory.SetArrayData(array, 0, 50) Memory.SetArrayData(array, 1, 23) Memory.SetArrayData(array, 2, 51) Dialog.Message("Must Be 23", Memory.GetArrayData(array, 1)) Memory.FreeStructure(array)

See also:  Related Actions

Сайт управляется системой uCoz