Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is the list in a combo empty?
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00483822
Message ID:
00483901
Vues:
7
>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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform