Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter NineDialog Functions (continued)

DataControlGetColumnCount Function

Overview

The DataControlGetColumnCount function retrieves the number of columns loaded into the data control.

Syntax/Parameters

Syntax

int = DataControlGetColumnCount ( int id );

Parameters

id

An int containing the control ID of the data control.

Return Value

Returns an int containing the number of columns in the data control, 1 if the control is empty, or 0 on failure. Common error codes are as follows: ERROR_RANGE if id is an invalid control ID for the open dialog or ERROR_INVALID_HANDLE if no dialog is open. Use the GetLastError function to retrieve error information.

Remarks

By default, a data control will always have at least one column. The width of a data control can be set by a number of functions. Adding a string will expand the columns as required. Adding a heading will as well.

Related Functions

Platform Support

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

Legato IDE, Legato Basic