Advertisement
1_2002 String Manipulation #105834

InStr for lists

will search a listbox's contents for a string returning a True if the string exists and a False if it dosent

AI

Yapay Zeka Özeti: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kaynak Kod
original-source
Function ListIsIn(lst As ListBox, zString As String) As Boolean
On Error Resume Next
For i = 0 To lst.ListCount
  If lst.List(i) = zString Then ListIsIn = True: GoTo grr
Next i
ListIsIn = False
grr:
End Function
Orijinal Yorumlar (3)
Wayback Machine'den kurtarıldı