Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open method editor
Message
From
30/01/2002 09:41:26
 
 
To
30/01/2002 09:35:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00612689
Message ID:
00612695
Views:
19
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform