Terry,
>Help on LOCAL says something about instantiating an object that is declared using AS. Does anyone understand this?
>
>Can I actually instantiate an object in its declaration?
It's for Intellisense when you are in a code window. However, you can't find any evidence of instantiation inside VFP when the Intellisense is operating, other than the fact that the methods and props of the object pop up as you type.
MODI COMM test
LOCAL oMyTest AS dstest OF dsstest.vcx
oMyTest. [Intellisense kicks in here]
-- or --
LOCAL oIE AS internetexplorer.application
oie.
However, assuming I have a method in dstest called TestMe(), if you save this into a prg and run it, you will of course get "oMyTest is not an object", since we had no CREATEOBJECT().
LOCAL oMyTest AS dstest OF dsstest.vcx
oMyTest.TestMe()