ListBox-SelectString

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

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