Sunday, November 14, 2010

PEM Editor Tip: New feature for Navigating to Parent Classes

This is a new feature in version 6.20.

A constant and unavoidable frustration occurs when you find that you need to work on a parent class for the form or class you are editing (or one of its members).  What you need to do, of course, is to close the form or class you are working on and then find and open the parent class. This new feature simplifies the task of finding and opening the parent class, so that it can be done entirely within PEM Editor.

These are the few steps to be followed:
(1)  Make sure that PEM Editor is displaying the form/class/object whose Parent Class you want to open.
(2)  Open the context menu from the combobox, and select 'Save Parent Classes'.


(3)  Close the current form or class.
(4)  Click on the 'Open' icon at the top of PEM Editor. Under the menu item 'MRU Parent Classes' will be listed all the parent classes (all of them ... all the way back), and you can select which Parent Class you need to modify.

4 comments:

  1. Super!! Thanks a lot Jim. Is it possible to trigger the Source Control code that opens the parent class for editing?

    ReplyDelete
  2. Bhavbhuti --

    Source Control code is an entirely new issue, isn't it! There are a number of MRU lists maintainted by PEM Editor -- forms, class, etc. Don't you want to trigger Source Control Code for any of these? And, if so, how is that done ... using the current project, if any?

    This is a good topic to explore! Thanks

    ReplyDelete
  3. Yes. If you remember the exercise done for the Project hook. The following code comes from it
    IF NOT INLIST (_VFP.ACTIVEPROJECT.FILES (lcFileName).SCCSTATUS, 0, 2)
    _VFP.ACTIVEPROJECT.FILES (lcFileName).CHECKOUT()
    ENDIF

    ReplyDelete
  4. I'll see what I can do about including that in an upcoming release.

    ReplyDelete