Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get all procedure names in a project
Message
 
 
À
06/01/2009 16:25:51
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01371489
Message ID:
01371501
Vues:
24
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform