Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile Rules.
Message
From
20/01/2005 10:22:17
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Oracle
Miscellaneous
Thread ID:
00978784
Message ID:
00978870
Views:
19
>>Hi Is there any way I can add my own compile rules?
>>
>>For example if a developer uses SUSBTR() in the code I want to flag an error during compile (or at some other time). Because we need them to use SUBSTRC() instead due to double byte requirements.
>>
>
>Tim,
>
>You can use ProjectHook BeforeBuild Event to do any checks and even cancel build by issuing NODEFAULT. Another way to prevent the problem is to use a heder file with something like
#DEFINE SUBSTR SUBSTRC
Won't that cause the people who use SUBSTRC to throw an error trying to compile SUBSTRCC ? Including the ( should solve that.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform