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.