Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Automation help
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00192793
Message ID:
00192801
Views:
19
>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform