Description
Locates a string in a list or combo box.
Applies to
Combo box and list box.
Syntax
textposition = Send_Message(controlID, "POS_BY_TEXT", findtext, startpos [, matchflag])
Parameters
Parameters are as follows.
Parameters | Description |
---|---|
Findtext | Text to find. It is sufficient to specify just the first characters of desired text. |
Startpos | Position of item before the first item to be searched. Use 0 to search the entire list. |
Matchflag | Set true, if you require an exact match. The default value is false. A partial match starts at the first character and then searches to the right. |
Return value
Position of the matched list item (starting with 1), or 0 if search was unsuccessful.