Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.5b

Application v 5.24b

  

 

Chapter NineDialog Functions (continued)

ListBoxGetItemCount Function

Overview

The ListBoxGetItemCount function retrieves the number of items loaded into the list box.

Syntax/Parameters

Syntax

int = ListBoxGetItemCount ( int id );

Parameters

id

An int containing the control ID of a list box.

Return Value

Returns an int containing the number of items in the list box, 0 if the list box is empty, or a formatted error code 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

Like an array, the items in a list box are numbered beginning at zero. Use the ListBoxFindItem to retrieve the index of a specific item.

Related Functions

Platform Support

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

Legato IDE, Legato Basic