Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter ThreeData Types and Operators (continued)

ArrayAddKeyName Function

Overview

The ArrayAddKeyName function adds or supplements a single key name to an array on a specified axis.

Syntax/Parameters

Syntax

int = ArrayAddKeyName ( variable name, string key, [int axis] );

Parameters

name

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

key

A string containing the key name to add. Must be less than 64 characters. Exceeding 64 characters will result in a runtime error.

axis

An optional int specifying the axis to which the keys will be added. 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 an int containing the index of the newly added key or existing index or ERROR_SOFT on failure. The lower part of the error code will contain specific information pertaining to the error.

Remarks

If a key name already exists, it is ignored. Key names cannot be larger than 64 characters. Common sources of errors include specifying an improper array, specifying an invalid dimension, or using a key name that is too large.

Related Functions

Platform Support

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

Legato IDE, Legato Basic