Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open method editor
Message
 
 
À
30/01/2002 09:35:58
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00612689
Message ID:
00612695
Vues:
20
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform