Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get all DocVariable from a .DOC
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00684516
Message ID:
00684613
Views:
26
Oops missed the .Name ;)

>Hi Jean-René
>
>I don't know of a method, but Document.Variables is a collection.
>There is a property .Count that should hold the number of variables and you can also access it by a numeric index too.
>
>It as well has a property .Name, so a loop in VFP should do the trick.
>
>
>toWord = CreateObject("application.word")
>For i = 1 to toWord.ActiveDocument.Variables.Count
>lcname = toWord.ActiveDocument.Variables.Name(i)
>...
>EndFor
>
>
>HTH
>Markus
Previous
Reply
Map
View

Click here to load this message in the networking platform