Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP & Word Automation Commands
Message
From
26/03/2003 13:03:36
 
 
To
26/03/2003 12:12:25
Dick Day
Madison County, Nebraska
Nebraska, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00757384
Message ID:
00770333
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform