>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement