Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local variables...
Message
From
09/01/2002 08:18:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
09/01/2002 08:15:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00602443
Message ID:
00602445
Views:
15
>If I create a COM object locally in a form method i.e.
>
>LOCAL loMyCOM
>
>loMyCOM = createobject("whatever")
>
>Do I have to release the variable at the end of the method???
>
>Pablo

In VFP, local, private and undeclared variables are release as soon as the method, procedure or function ends. I don't have experience with COM, but I don't see why it should be different there.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform