Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP & Word Automation Commands
Message
De
26/03/2003 13:03:36
 
 
À
26/03/2003 12:12:25
Dick Day
Madison County, Nebraska
Nebraska, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00757384
Message ID:
00770333
Vues:
19
>1. The wd97cons.h file does not contain the wdMoveUp constant, it only has
>wdMove. How would I see what the value should be (I'm using Word2000) for this so I can add it to the .h file?

You can look up any constant using either the Office Object Browser or VFP's Object Browser (VFP 7 and later). In Office, switch to the Visual Basic Editor and choose View-Object Browser. Type in the constant you're looking for and click the Find button.


>2. Assuming I can get the new constant added, how would I convert the following Word macro command line to VFP:
>
>Selection.MoveUp Unit:=wdLine, Count:=1
>

Selection.MoveUp(wdLine, 1)

Word permits what are called named parameters, using the format ParameterName:=Value. In VFP, you pass just the value.

You'd probably find Chapter 2 of the book Della Martin and I wrote, "Microsoft Office Automation with Visual FoxPro" useful at this point in your learning curve.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform