Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert Code
Message
De
19/02/2004 19:03:59
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00878969
Message ID:
00879009
Vues:
17
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform