ErrorCapture



Function SetComboText(MyCombo as ComboBox, MyItem as String) as Integer
Dim I as Integer
For I = 0 to MyCombo.ListCount - 1
If MyCombo.List(I) = MyItem Then
SetComboText = I
Exit Function
End If
Next I
' If the program reaches this point, the string is not in the

' list.

SetComboText = - 1
End Function

(errorcapture.html)- by Paolo Puglisi - Modifica del 25/3/2019