Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collection class clarification
Message
From
06/05/2003 14:38:29
 
 
To
06/05/2003 14:16:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00785502
Message ID:
00785522
Views:
23
I'm not sure what this is: form1RefCount. Is this a system variable? How can I test for this. I'm think I'm missing something very simple here.

>Hi Ramil,
>
>loForm1 = CREATEOBJECT("form") && form1RefCount =1
>loCol = CREATEOBJECT("collection")
>loCol.Add(CREATEOBJECT("form"),'1') && form2RefCount =1
>
>loCol.Add(loForm1,'2')&& form1RefCount =2
>
>* path1
>? loCol.Remove('2') && form1RefCount = 1
>
>* path2
>loForm1 = NULL && form1RefCount = 1
>? loCol.Remove('2') && form1RefCount = 0 then VFP release object
>
>Fabio
ramil
~~ learning to stand still
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform