OK, Thank you gentlemen for your help.
- Don
>>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:
>
>* Main.h
>#include OfficeConstants.h
>#include FoxPro.h
>#include UserMessages.h
>...
>
>* In a PRG
>#include main.h
>
>* In a form: Form | Include file | (search for main.h)
>
>* In a class: Class | Include file | (search for main.h)
>