>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