Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Editing a sub-routine
Message
De
08/01/2005 15:17:54
 
 
À
08/01/2005 11:40:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
00975393
Message ID:
00975436
Vues:
19
RE: Code Reference:

Yes, that's a powerful tool, just not the right one for what I need. In fact, I use it all the time ... to find code references. My issue is that I already have code on my screen, which references a PRG somewhere ... and I want a quick/slick way to begin editing that PRG.

Jim

>It's me again..
>
>Actually there seem to be some feature, but I have not seen it before your question made me do some test. I strongly believe Code Reference has far more capabilities than you think. This is an excerpt from Help on How to: View Code Definitions:
>
>When performing a code reference search, you can locate the definition of a code element that you found in the current program file, if the definition exists. For more information, see How to: Search for Code References.
>
>To view the definition of a code element
>Open the program file to the location of the code element.
>
>Double-click the text of the code element to select it.
>
>Right-click to display the shortcut menu, and select View Definition.
>
>You can also call View Definition using the DO (_FOXREF) WITH... command. For more information, see _FOXREF System Variable.
>
>View Definition first searches for other external file references that are in the source file, followed by files in the active project. If multiple code element definitions exist, the Go To Definition window appears so you can select a defintion.
>
>If the definition cannot be found in a file for the active project, View Definition searches other open projects or folders. If the definition is found in one of these locations, the Go To Definition window opens for you to select the correct location. For more information, see Go To Definition Window.
>
>If the code element is user-defined, and the definition is found, Visual FoxPro opens an editing window to the location of the definition. If the item you select is a native Visual FoxPro command or function, the Visual FoxPro Help opens the Help topic for that item. If the item you select is a file name, such as for a #INCLUDE statement or SET PROCEDURE command, Visual FoxPro opens the file.
>
>
>>No, that doesn't seem to be relevant. Maybe I should re-phrase my question:
>>
>>Is there some mouse or keyboard shortcut that allows to highlight a PRG (occurring in a PRG, or, for that matter, in any code) and begin editing it? The only way that I am aware of is to copy it, Ctrl+F2, "MODI COMM ", and then paste it.
>>
>>Jim
>>
>>
>>
>>>I updated my first answer too late for you to see it. No double-click, but have you checked the Code Reference under Tools?
>>>
>>>>Yes -- in another world, I was able to double-click on a sub-routine name to edit that sub-routine. Is there something equivalent here in VFP?
>>>>
>>>>
>>>>
>>>>>Do you mean to open MySubroutine.prg which already exists?
>>>>>
>>>>>>Is there some simple way, when editing a PRG, to begin editing a PRG that is called there?
>>>>>>
>>>>>>If I have
>>>>>>
>>>>>>   bla-bla-bla
>>>>>>   MySubroutine(params)
>>>>>>   bla-bal-bla
>>>>>>
>>>>>>is there some way to begin editing 'MySubroutine' other than be copying and pasting it to the command window where I can do MODI COMM?
>>>>>>
>>>>>>Thanks
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform