Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiler directive only for dev time
Message
 
To
16/09/2014 13:12:08
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01607627
Message ID:
01607629
Views:
101
>Hey all
>
>I am trying to execute a piece of code only at design time, never at runtime. I thought I could do a compiler directive. Something like
>
>#IF _vfp.startmode=0
>
>Of course, that will never work. Compilation is always at startmode 0, so it will be a hit in the exe. I guess it is possible to drive this by checking for the existence of a file? If the file is present, exclude the design time code?
>
>Thanks

Will the Version(2) function work for you?
Phil Thomas
http://phillipdthomas.com

Never let your energy or enthusiasm be dampened by the discouragements that must inevitably come.....
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform