x = CREATEOBJECT("InternetExplorer.Application") x.Visible = .t. x.navigate2('http://localhost/')Going into the VFP Debugger, the Locals window now shows that x is an object and it has a member (i.e. a method) named "navigate2" with value = (none) and a "visible" property whose value = .T. I can see no other features of x in the Debugger at this point.
? VARTYPE(x.
Intellisense kicks in and presents me with a list of appropriate choices, from which I select "Document" and finish by entering this command line:? VARTYPE(x.Document)VFP displays the result "O", and the Debugger now reveals that x has a Document (Object), which I can expand to see a bunch of Document properties at once, along with their values. However, I still do not see any of the other properties of x (the IE WebBrowser), and I don't see all of the x.Document properties, only a subset of the "simple" ones. None of the object-type "properties" of x.Document are displayed in the Debugger, and some of the simple properties (e.g.charset) are not shown. Even if I type:
? VARTYPE(x.Document.charset)VFP reports correctly that the type is "C", but this property still does not show up in the Debugger (that seems to be a bug). If I type a new command line that begins with:
? VARTYPE(x.Document.Intellisense kicks in again, but the list of choices it gives me are properties and methods of the WebBrowser control, not of it's Document member object. (This would appear to be an Intellisense bug, but let's not focus on that point.) Now I try something else:
y = x.Document ? VARTYPE(y.This makes some further progress, because Intellisense now correctly prompts me with a list of Document properties and methods, including those that were missing from the Debugger's display in the Locals window. In the Debugger, however, I still see nothing new (except y, which looks just like x.Document). I still don't get a peek at any of the additional properties that Intellisense knows are applicable to the Document object.
z = x.Document.body ? VARTYPE(z.Again, Intellisense presents me with an appropriate, juicy list of of choices for properties and methods of the HTML Document Body object, which is nice, but the Debugger does not display anything about z, except that it's an (object), and I can't expand it. Furthermore, the Debugger does not show that x.document.body exists at all, only that there is now an object-type variable named z.