>>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
>
>It works in slightly different way.
>oWord = CREATEOBJECT("Word.Basic")
>and now you have the object to use it as reference point for Word PEM, e.g.
>oWord.AppShow
If you have the office 97 and I think Office 95 you can find what you need by:
start word
select from tools MACROS
then VISUAL BASIC EDITOR
then from that menu select VIEW
then select Object Browser.
This will give the classes and methods and properties.
You have to dig a little farther to get the number value of propeties because VFP will not pass as words.
Like in Excel ox.SELECTION.FONT.Bold =0 is ox.SELECTION.FONT.Bold=false
HTH
Jeff
It's Time to get a gun.
That's what I've been thinkin.
I think I can afford one, If I do a little less Drinkin.www.TrueGeeks.com