Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters to a method in 'word.application'
Message
 
 
To
13/03/2002 18:35:03
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00632467
Message ID:
00632492
Views:
21
Michael:

That won't do it, the parameter should be passed as a VARIANT type variable, which I don't know how.

Here is another example, note that the 1st paramenter is diferent in both syntaxis :

Syntax 1
expresión.Save(NoPrompt, OriginalFormat)

Syntax 2
expresión.Save(Comment)

Syntax 1: Requerida. Expresión que devuelve un objeto Documents.
Syntax 2: Requerida. Expresión que devuelve un objeto Versions.

NoPrompt = Type Variant optional.
OriginalFormat = Type Variant optional.
Comment = Type Variant optional.

Here is the VBasic example:

Syntax 1:
Documents.Save NoPrompt:=True, OriginalFormat:=1

Syntax 2:
Documents.Save Comment:="Minor changes to intro"
Jorge Flores
From the Amigo Country
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform