Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ole Objects
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00099708
Message ID:
00099721
Vues:
18
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform