Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function exists in a PRG?
Message
 
To
16/03/2007 13:38:49
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01204677
Message ID:
01204756
Views:
17
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform