Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter ThreeData Types and Operators (continued)

ArrayGetKeyName Function

Overview

The ArrayGetKeyName function returns the name of a key from a specified index position.

Syntax/Parameters

Syntax

string = ArrayGetKeyName ( variable name, int index, [int axis] );

Parameters

name

A name of a variable, which must be an array.

index

An int containing the zero-based position within the array.

axis

An optional int specifying the axis on which the index exists. The following are possible values:

Define Value Description
AXIS_X/AXIS_ROW 0 X dimension (rows)
AXIS_Y/AXIS_COL 1 Y dimension (columns)
AXIS_Z 2 Z dimension

 

The default value is AXIS_X.

Return Value

Returns a string specifying the key name for the index or an empty string on failure. Use the GetLastError function to retrieve error information. If a key has not been specified for the index, the number of the index will be returned and an error code will be set which can also be retrieved by using the GetLastError function.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic