Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp7 and local
Message
From
06/03/2001 21:35:29
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00482535
Message ID:
00482544
Views:
7
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()
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform