Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is the list in a combo empty?
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00483822
Message ID:
00483901
Views:
8
>You should use:
>if cbo.listcount > 0 then cbo.text = cbo.list(0)
>
>I made some test and listcount is giving me 0 if there is nothing in the list (VB6 SP4).

Thanks Eric, I goofed. I populate the list form the contents of an array and it had a single element with "" in it.

Is is possible to redim an array to not have any elements?
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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform