Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editing a sub-routine
Message
From
10/01/2005 11:29:29
 
 
To
10/01/2005 09:12:25
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00975393
Message ID:
00975692
Views:
17
Yes, indeed, my apologies ... once I read "Code Reference" in Tore's message, I thought I understood more than I did.

So, double-clicking then right-clicking does the trick. A number of things I've learned here (for others as ignorant of this capability as I):

[1] It appears that this works only when you have a project open. As I haven't usually worked that way, it seems like this capability alone makes it worthwhile always to have the current project open.

[2] "View Definition" find the PROC or FUNC wherever it is, be it the current PRG or embedded in some other PRG.

[3] "View Definition" only finds PROCs that are defined with a PROCEDURE or FUNCTION statement. Thus, a PRG named 'MyProgram.PRG' which does not begin with a PROCEDURE statement will not be found. (I usually only add PROC of FUNC to the first line of PRGs if there are more than one in the PRG.)

[4] Directly below "View Definition" in the pop-up menu is a closely related item, "Look Up Reference" which will find all references to the highlighted name ... an easy way to get to "Code References".

Again, Thanks

Jim


>>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.
>>
>
>Read the rest of Tore's message. The View Definition capability is what you're looking for.
>
>Tamar
Jim Nelson
Newbury Park, CA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform