Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter NineDialog Functions (continued)

ListBoxFindItem Function

Overview

The ListBoxFindItem function searches the contents of a list box for an item that exactly matches the search string.

Syntax/Parameters

Syntax

int = ListBoxFindItem ( int id, string target );

Parameters

id

An int containing the control ID of a list box.

target

A string containing the search term.

Return Value

Returns an int containing the index of the first item that matches name or an error 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

The ListBoxFindItem function finds the first string in the list box that exactly matches the specified string. The search is not case-sensitive.

Related Functions

Platform Support

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

Legato IDE, Legato Basic