Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local variables...
Message
De
09/01/2002 08:18:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
09/01/2002 08:15:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00602443
Message ID:
00602445
Vues:
13
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform