PalListSelectString

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber PalListSelectString( SalWindowHandle hWndList,
		            ref SalNumber nStartIndex,
		            SalString sSearchFor )

The PalListSelectString method selects the first item in a list box that begins with the specified string.

Parameters

Name Description
SalWindowHandle hWndList The handle (or name) of the list box, combo box or drop-down list to select in.
ref SalNumber nStartIndex The index at which to start the search. If a list item matching the search criteria is found, nStartIndex is set to point to the next item in the list.
SalString sSearchFor The search string which the selected item should begin with.

Returns

The return value is index of the list item that was selected, or 0 if no item is selected.

Example

! Select the first list entry beginning "s"
Call PalListSelectString( lbEmployees, nStartIndex, 's' )
C# code
// Select the first list entry beginning "s"
Int.PalListSelectString(this.i_hWndSelf, ref this.__nLastSelected, "s");