Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the count of a collection
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00053257
Message ID:
00053267
Vues:
27
>>>In the treeview, I would like to get the count of a collection. I can't find the correct syntax.
>>
>>ThisForm.Olecontrol1.Nodes.Count returns the total number of items in the collection. Is this what you're looking for?
>
>No, I am looking for the count of the current collections. This mean all the children related to the current node.

I thought that's what you might be looking for. The only way I know is to loop through the collection and count the instances where the .Key property contains the string you're looking for. Naturally, the number of children will be one less than the total.

HTH,

George
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform