Skip to content

Variable_local_array_get

hpgDesigns edited this page Aug 8, 2021 · 1 revision

Description

Gets the value of the local 1-dimensional array with the given name.

Parameters

Parameter Data Type Description
name string local variable name of the array
ind integer index of the array

Return Values

variant: Returns the variable retrieved from the array.

Example Call

// demonstrates obtaining a value from a local array by looking up the array by its string name
var val;
val = variable_local_array_get("myarray", 0);

NOTOC

This is number 1

Clone this wiki locally