Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How not to use value in .h file
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How not to use value in .h file
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01471862
Message ID:
01471862
Views:
122
Hi,

I ran into an issue with control name conflicting with the entry in the include (.h) file. For example, say I have in my .h file the following:

#define SOMESTRING 25

Then I have a control that is named SOMESTRING. Then, when I compile the program and the code that uses the control name is changing to 25. Obviously compiler gives error message. I will have to be careful in naming controls such that it does not conflict with include file. But meantime, is it possible to tell the compiler (in a certain place in the code) that such as such "string" should not be preprocessed?

TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform