Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ole Objects
Message
From
15/05/1998 10:15:06
Ryan Hirschey
Federal Reserve Bank of New York
New York City, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00099708
Message ID:
00099725
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform