README.md
December 4, 2022 ยท View on GitHub
Description
will search a listbox's contents for a string returning a True if the string exists and a False if it dosent
More Info
lst = The Listbox
zString = The string to search the list for
True or False depending on if the string was found
| Submitted On | |
| By | Ridium |
| Level | Beginner |
| User Rating | 4.5 (18 globes from 4 users) |
| Compatibility | VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0 |
| Category | String Manipulation |
| World | Visual Basic |
| Archive File |
Source Code
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