Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quick simple question..
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00755668
Message ID:
00756043
Views:
14
>Einar,
>
>To p[ut #DEFINEs in perspective for you think of them as Search and Replace functions. #DEFINE tells the COMPILER to search for the #DEFINEd name and replace ti with the value. This occurs at compile time and NOT at run time. There is no concept of exiting the procedure for #DEFINEs as the procedure is NOT running when the #DEFINEs are processed, the code is being compiled when they are processed. The purpose of #UNDEF is as explained by one of the other replies, to undefine a constant so you can do something else with that name in the compiler directives. It is also usefull is you are using #IFs to check for #DEFINEs and you want a certain procedure to undefine a constant.

Thanks for a very informative answer Jim.

Einar
Semper ubi sub ubi.
Previous
Reply
Map
View

Click here to load this message in the networking platform