computerprogramer
asked on
How to tell if Items in listbox exist
Hey,
How can I tell if there are items in a listbox. So when I click on a button it will say "items exist" if there are items in the listbox and if there are no items in the listbox it will say "no items in the listbox".
Cheers,
Computer Programer
How can I tell if there are items in a listbox. So when I click on a button it will say "items exist" if there are items in the listbox and if there are no items in the listbox it will say "no items in the listbox".
Cheers,
Computer Programer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
to test it, just say:
if ListBox1.Items.IndexOf(Edi
ShowMessage('Item Exists!')
else ShowMessage('No such item in the listbox!');