Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp7 and local
Message
 
À
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:
00482576
Vues:
12
That makes sense. I will test local oMyTest AS dstest of dsstest.prg also.

Do you know if this typing relates to early or late binding?

Thanks

>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()
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform