Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Writing a function to open all methods for an object
Message
De
26/01/2001 06:52:43
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00468947
Message ID:
00468958
Vues:
14
Thanks Vlad

This points me in the right direction since I would like to be able to edit the class code for an object as well at some stage.

However at this stage I am only trying to open the methods for the instance of the class on my form that I am currently looking at.

For example

I am in the form designer.

I float my mouse over a button. I press F8.

Now all the methods for my button are displayed on the screen in editing windows.

Thanks


>Hi!
>
>MODI CLASS OF METHOD NOWAIT SAVE
>
>Use above command for your class. You can use amembers() funtion to get list of all PEM's to loop through them and open code snippets. sample fo accessing method of subobject: 'METHOD cntContainer.pgfPageframe.Page2.txtControl.Init'.
>
>For form use 'MODIFY FORM' command.
>
>Note that you can specify line number of code line to start edit from (useful for errors tracking):
>MODI CLASS OF METHOD , NOWAIT SAVE
>
>Probably there are other options for such commands, like specifying of editing font or highlight or not code lines, but I did not investigated this further. I'm interested to know how to open memo field editing with code lines highlighting? Anyone can give me a sutable command?
>
>
>HTH.
>
>
>>I have a written a function and use it on a regular basis.
>>
>>When I float my mouse over an object and press F8, it displays a fully qualified name for that object in a WAIT NOWAIT and also copies the name to the clipboard ready for my use as I code.
>>
>>I would like to extend its functionality so that pressing a different function key, also opens all the method editing windows for that object.
>>
>>I have no idea how to access these method editing windows in a way that VFP will find acceptable during a normal Form editing session.
>>
>>All help most gratefully received
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform