Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word Automation help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00192793
Message ID:
00192801
Vues:
21
>What am I doing wrong here?
>
> oWord = CREATEOBJECT("Word.Application")
> oWord.Documents.Open("FileName:='c:\test.doc'")

As Edward said, the problem is that VFP does not support named parameters, only positional parameters. In other words, if you want to specify only two parameters to a function, and they're the second and fifth parameters listed in the Help file, you have to do something like
oApp.MyFunction(, "value 1", , , "value 2")
instead of
oApp.myFunction(parm2 := "value 1", parm5 := "value 2")
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform