cGetLBText

Extracts the text from a standard list box. 

Syntax:

cGetLBText( hwnd )

Parameters:

(i) hwnd ListBox handle from a cWndBy... function.

Returns:

(s) Listbox contents in a tab delimited list.

 

This function is designed to extract the contents of a listbox, presumably so the contents may be examined to determine which item to set.

 

Example:

AddExtender("wwctl44i.dll",0,"wwctl64i.dll")

hwndParent = DllHwnd("Microsoft Control Spy -") hwnd = cWndbyclass(hwndParent, "ListBox") ; Get the listbox text Text = cGetLbText(hwnd) Message("Text", Text) Exit
 
 

See Also:

 

cSetLBItem, cGetEditText, cGetCBText