Mike Yearwood
Toronto, Ontario, Canada
Information générale
Catégorie:
Codage, syntaxe et commandes
>>Dear all,
>>
>>Wondering if there is a way to find out if a function is defined in a PRG without actually running the function?
>>
>>Thanks!
>
>Don't waste your time. Break the function out of the .prg to it's own separate prg. If it supposed to be called at all include it in the exe. No need to check anything.
Oh in some of the PRG there is a UnitTest() defined for testing that module. I am writing a test driver which loops through all PRG in a project and calls UnitTest() if it exists in them. I could have separated the function out but putting related things together in one file is easier for me.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement