Thor TWEeT #14: IntellisenseX for Objects
In SCXs and VCXs, IntellisenseX provides a drop down list for objects referenced by THISFORM or THIS that is very similar to that given my default Intellisense:
As can be seen, the display has a second column, showing the parameters list for methods and events.
If you select an item from the list and press Ctrl+Enter, the parameters list will be inserted into your code, as shown below. This is not necessary when default Intellisense provides the Quick Info window for parameters but is of considerable value for the cases (described below) where IntellisenseX provides assistance where default Intellisense does not.
Inside WITH/ENDWITH structures
IntellisenseX provides drop down lists inside WITH/ENDWITH structures for a variety of cases not supported by default Intellisense, including WITH THISFORM, WITH THIS.PARENT, and embedded WITHs.
In PRG-based classes
IntellisenseX provides drop down lists for THIS and WITH THIS inside PRG-based classes.
On the options page on the Thor Configuration form you can indicate the level of detail you want to see (either custom properties and methods in this class only, or all inherited properties and methods)
In LOCAL Statements
IntellisenseX now recognizes objects identified in LOCAL statements (as default Intellisense does).
After NEWOBJECT or CREATEOBJECT
IntellisenseX also recognizes objects created by NEWOBJECT or CREATEOBJECT even if there is no corresponding LOCAL statement. This can be quite handy when first writing a procedure.
UDFs that create objects
IntellisenseX also provides a Plug-In (named “NewObject”) that allows it to recognize when you have called a UDF that creates an object. In the example below, my personal use of the plug-in allows Intellisense to recognize my use of a UDF named NewSessionObject (which happens to use the same parameters as NEWOBJECT, but this is not necessary).
For specifics of the use of this Plug-in, see IntelligenseX Plug-Ins.
With loObject
Finally, when you have objects defined by any of the examples noted above, IntellisenseX will work on that object when referenced after WITH, as shown below.
ddd
See also History of all Thor TWEeTs andthe Thor Forum.