Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another Collection class question
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00785535
Message ID:
00785880
Views:
11
>>>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform