Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters to a method in 'word.application'
Message
 
À
13/03/2002 18:35:03
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00632467
Message ID:
00632492
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform