Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert Code
Message
From
19/02/2004 19:03:59
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00878969
Message ID:
00879009
Views:
16
>How do I convert this code "Selection.MoveLeft Unit:=WdWord, Count:=1, Extend:=wdExtend" to VFP so I won't get error?

Like David said, VFP does not support named parameters.
In this case you can place them separated by commas in the same order.

Also, you can get the constants values through the Object Browser. For Word, you can find them already in sites like the VFP Wiki:
http://fox.wikis.com/wc.dll?Wiki~WordConstants
#DEFINE wdWord 2
#DEFINE wdExtend 1

* then something similar to this:
oWord.Selection.MoveLeft(wdWord, 1, wdExtend)


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform