ComboBox-SelectString

Function Name dcl-ComboBox-SelectString
Syntax   (dcl-ComboBox-SelectString <CONTROL> Search [as String] {StartAfter [as Long]})
Return Type Long
Applies To Combo Box

此方法对组合框列表中以“搜索”开头的项执行不区分大小写的搜索,并将当前选择更改为第一个匹配项(如果找到)。 搜索从StartAfter之后的项开始,并继续经过最后一个项返回到第一个项,直到整个列表被搜索。 如果未指定StartAfter,则搜索从列表中的第一个项开始。 返回值是第一个匹配项的索引(基于零),如果没有找到项则返回-1。