Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole Objects
Message
De
15/05/1998 10:15:06
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00099708
Message ID:
00099725
Vues:
24
>Hello All;
>I'm new at OOP and in reviewing the samples in VFP5, I noticed that
>instead of the old "RUN /N7 whatever.exe", they used something to
>effect of:
> newobject = CREATEOBJECT("Word.basic")
> x = APPminimize("newobject")
>
>I'm curious - How do you know the value word.basic? If you want to run a different application how do you know what value to put into
>this object area name??
>
>Thanks

Keep in mind that using the createobject syntax is not only syntactically different, but also provides a different level of control. Run simply runs the application in question, similar to executing it from a DOS command prompt. Createobject exposes the properties, events and methods of that application, allowing for much greater control over the management of that application. You can even programmatically shut the application down, something RUN can't do.
Ryan Hirschey
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform