Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter EightData Functions (continued)

HasData Function

Overview

The HasData function tests if an array, list, or table contains data.

Syntax/Parameters

Syntax

boolean = HasData ( var[] list | var[][] table );

Parameters

list or table

An array of string or int data which must resolve to one or two dimensions.

Return Value

Returns a boolean value as TRUE if the variable contains data or FALSE if it does not. On error, the function returns FALSE. Use the GetLastError function to retrieve error information.

Remarks

Unlike checking the axis depth, the HasData function checks the content. Three-dimensional arrays are not allowed. Strings are trimmed of trailing spaces before testing.

Related Functions

Platform Support

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

Legato IDE, Legato Basic