Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another Collection class question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00785535
Message ID:
00785880
Vues:
10
>>>Where does the clearing of items in a collection occur? See code sample:
>>>oCol=createobject('clsCollection')
>>>oCol.Add(createobject('form'))
>>>?oCol.Count && 1
>>>
>>>define class clsCollection as collection
>>>   procedure destroy
>>>      ? this.count && 0!!!
>>>   endproc
>>>enddefine
>>
>>When I run that code in VFP8, the Destroy method prints out 1, rather than 0, as you seem to indicate above.
>
>Weird, I tried it on my home PC running Win XP and both ? displayed 1. I have Win2K
>at work where the problem manifested. What OS version are you running the sample?

XP, like your home box. If I can get my hands on a Win2K box, I'll try it there as well.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform