Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compile time directives
Message
From
30/05/2002 18:49:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Compile time directives
Miscellaneous
Thread ID:
00663230
Message ID:
00663230
Views:
53
Greetings - This is my first post here. All help is appreciated. Joe

---------------

I am trying to structure some code that I can stop development and cut a new APP foir my client without my new stuff messing him up. To do so I want to use compile time directives.

In the main module I place this line:

#DEFINE INDEVELOPMENT 1

Within this module there are locations where I reference this like so:

#IF INDEVELOPMENT = 1
...do something new and special
#ENDIF

or even tried this:

#IFDEF INDEVELOPMENT
...do something new and special
#ENDIF

In several other modules (some of which are PRG's the others are SCX's) I do the same thing.

The compiler issues no errors for the coding, however I do remember (when using #IF rather than #IFDEF) getting the "Preprocessor expression is invalid" when editing.
I suspect scope is the issue at hand here but can find absolutely no documentation on scope for compile time variables.
Next
Reply
Map
View

Click here to load this message in the networking platform