>>Hello,
>>
>>If I have the class designer open, how can I open a method in the editor programmatically, having the name of the method?
>>
>>I'm writing some tools to simplify the designing of classes and the possibilities seem endless :)
>>
>>Thanks for your help in advance.
>
>Perhaps you can do something with ReadMethod() and WriteMethod().
>
>Hilmar.
Now I found the function in the HELP:
EDITSOURCE("PrUpgrade.VCX",0,"PrUpgrade","DoViewLog") does the work for me.
The reason I want to do it this way is, that I have the form designer open. On the form are several buttons (I do not use a real toolbar, I just drop buttons on the form and let them look like a toolbar).
The buttons call methods in the form that are structured like "DO" + [oButton.NAME] (superclass method CLICK() event in the buttons).
In order to simplify the editing of methods that are called by buttons, I now simply select the button and click [shortcut], and the method "DO" + [oButton.NAME] opens for editing.
Christian Isberner
Software Consultant