Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is the list in a combo empty?
Message
 
To
All
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Is the list in a combo empty?
Miscellaneous
Thread ID:
00483822
Message ID:
00483822
Views:
49
I have a combo on a form with the style set to 2-Dropdown list. I populate the list through code based on a choice in another combo.

I set the combo to the first item in the list after it is populated with cbo.text = cbo.list(0). Works fine except if the list is empty.

How can I tell if it's empty? I tried .listcount but it has a value of 1 if it's empty or has been populated with only 1 item.

TIA.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Next
Reply
Map
View

Click here to load this message in the networking platform