Hi everybody,
by checking out the use of include files in VFP 6 I found the following problem:
I created incfile.h:
#define TEST_DEFINE 1
There is a program file using incfile.h as include:
#include incfile.h
#IF TEST_DEFINE = 1
=MESSAGEBOX("first message",64,"Whatsgoingonhere")
#ELSE
=MESSAGEBOX("second message",64,"Whatsgoingonhere")
#ENDIF
Running the program in VFP environment, I will see the first message. After changing the value of TEST_DEFINE in incfile.h, I will always get the first message. Even the deletion of incfile.h is ignored by VFP 6.
The definition of the constant TEST_DEFINE seems to be somewhere in memory (CLEAR ALL, RELEASE ALL, CLOSE ALL have no effect). Where are the constants? Will the inclusion only be actualized by recompiling the project? I do not use the project manager. How can I force the inclusion for every execution of the program?
On playing around, suddenly the second message appeared. Unfortunately I cannot reproduce this behavior.
Thanks for hints!
I've acquired quite a taste for a well-made mistake... [Fiona Apple]