Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automation question (MS Word from VFP)
Message
De
14/08/2006 10:30:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01144904
Message ID:
01145307
Vues:
21
>I think I have a way I can do what I need to do... which brings me to a second question. If I issue the following code:
>
>oWord = CREATEOBJECT("Word.Application")
>oDocument = oWord.Documents.OPEN("C:\test.doc")
>With oRange.Find
>   .Text="SomeText"
>   lFound = .Execute	
>EndWith
>
>
>If lFound = .T., how can I then set a new range (oRange) equal to the starting position of where the text was found?

It happens automatically. When you use the Find.Execute method, the range is reset to the found text.

Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform