Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get all procedure names in a project
Message
 
 
To
06/01/2009 16:25:51
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01371489
Message ID:
01371501
Views:
14
>>>We had, well, let's just say, a questionable procedure name popup on a client's PC as part of an error message. We now need a way to find all the procedure/function names in our system and review them. Any reasonably easy way to do that?
>>
>>In the code reference you can search for "FUNCTION " and "PROCEDURE " keywords.
>
>Yeah, that returns a lot of stuff that is not really relevant. Seems like Foxpro would have better IDE tools. Hell, everything is in tables.

You can get a list of all programs in a project using project as a table
*--------------------------------------------------
*-- Extract all of the procedure and visual class
*-- library files present in the project.
*--------------------------------------------------
USE (tcProject) IN 0 AGAIN ALIAS _project
SELECT NAME, TYPE, EXCLUDE ;
	FROM _project ;
	WHERE !DELETED() ;
	AND (TYPE = "V" ;
	OR TYPE = "P") ;
	ORDER BY TYPE ;
	INTO CURSOR cTemp
Then you can use APROCINFO() for each program.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform