Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Writing a function to open all methods for an object
Message
 
 
À
26/01/2001 04:02:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00468947
Message ID:
00468953
Vues:
15
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
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform