Thor TWEeT #19: Deficiencies in IntellisenseX
(and how to avoid them)
… The Custom Keyword List …
Site under construction!
The most serious problem with IntellisenseX is that it is SO SLOW when getting the list of properties and methods in a VCX or SCX. The process of getting the correct case for names in a VCX/SCX, requiring parsing MemberData in parent class(es), takes more time than anybody would be willing to wait each time you enter THISFORM followed by a dot.
There is a similar problem when working in PRG-based classes where the parent class is anything other than a FoxPro base class. There is no good way to obtain the correct case for inherited names (PRG-based classes don’t even use MemberData), so all inherited custom names end up in lower case.
The remedy for these two problems is the same – the Custom Keyword List. This is just a simple table with the list of all words from your programming universe, where each word is saved with the mixture of upper/lower case that prefer. This table can be created easily, updated automatically, and applied to any block of code. Not only does this eliminate the problems mentioned above, it ensures that your words are always used consistently (same upper/lower case).
Getting Started
First, create the Custom Keyword List by using Thor Tool Add all words from folder or project. This tool will run for a few minutes as it scours an entire folder or project for all programming words. Eventually, a form will come up showing you the list of all words in found. You can do some editing of the list, but for starters the suggestion is to simply save everything.
Next, go to the options page for IntellisenseX in the Thor Configuration form to select the settings such that IntellisenseX will use the Custom Keyword List.
Image may be NSFW.
Clik here to view.
Finally, mark these checkboxes for option “Add all words in code window” as well, so that new words you create going forward, including properties and methods created by PEM Editor or any of its related tools, are automatically added to the Custom Keyword List. Do so even if you don’t used BeautifyX (but more on that in a bit).
Image may be NSFW.
Clik here to view.
See also History of all Thor TWEeTs andthe Thor Forum.