Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word object browser
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Word object browser
Miscellaneous
Thread ID:
00174545
Message ID:
00174545
Views:
48
I've got a Word97 document that I'm trying to work with via automation. I can't put references inside the VFP Watch window without it crashing VFP5. If I use the Word Basic Editor it only gives a pretty useless view of the objects that are already in the document. Is there a way of displaying a hierarchy of the current document objects? In the case in particular I'm trying to iterate through the Shapes collection but trying to use:
for each s in .Shapes
   debugout .TextFrame.TextRange.Text + "<"
endfor
is bombing out with an unknown name, even though the Word8 help file shows an example just like that.

I'd like to to open Shapes[1] and expand it and work my way through the object just like we can in the VFP Locals/Watch windows and I don't know if the Word Object Browser can do it or not.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Reply
Map
View

Click here to load this message in the networking platform