Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp7 and local
Message
De
06/03/2001 21:35:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00482535
Message ID:
00482544
Vues:
6
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform