General information
Category:
Coding, syntax & commands
Title:
Visibility of defined constants
I have an application that is launched with STARTUP.prg.
STARTUP.prg contains a line #INCLUDE constants.h.
constants.h contains a line #DEFINE CRLF chr(13) + chr(10)
My understanding is that the constants thus defined should be available throughout the application.
The application is running in _screen with a custom menu. The menu calls a routine contained in a .prg program file. References to CRLF within the program file result in an error that says the constant CRLF is undefined. Apparently the visibility chain is broken when control passes through a menu. Why would this be so? Is there a generally accepted way to overcome this limitation?
Thanks
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