>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
In addition to the other respondes you got:
You can create a bunch of #include files for different purposes, and one main #include file that #includes the others. Then, specify the main #include file in all your PRGs, forms and classes.
Example:
#include OfficeConstants.h
#include FoxPro.h
#include UserMessages.h
...
#include main.h
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)