>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)