Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Writing a function to open all methods for an object
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00468947
Message ID:
00468961
Vues:
14
Hi!

Ok, I found answer to my question. To open memo field for editing and highlight code lines need to exprt it into PRG file and use 'MODIFY COMMAND ... WINDOW ...' to edit it. Than after window closed write it back into the memo field.

>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
Répondre
Fil
Voir

Click here to load this message in the networking platform