General information
Category:
Coding, syntax & commands
>I am trying to include a header file using #INCLUDE. The program compiles without errors and the file is in the default directory, but nothing in that file is read, all declared variables are coming up undefined. What am I doing wrong?
>
>file example:
>* Application Constant Header file efgconst.h
>
>#DEFINE GUESTLEVEL 1
>#DEFINE USERLEVEL 2
>#DEFINE ADMINLEVEL 3
>
>* end of header file
>
>
>*code
>Set path to c:\vfp
>#INCLUDE efgconst.h
>
>Guestlevel, userlevel, and adminlevel variables are undefined.
>
>
>Thanks,
>
>Paul Wyett
I just tried a really simple test.
I created a program called a.prg.
*code
#INDLUDE A.H
?A
The header file contains
#DEFINE A 5
The program prints 5. Ofcourse in the debug window these values will not be shown.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only