Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Visibility of defined constants
Message
From
13/12/2006 14:17:51
 
 
To
13/12/2006 14:11:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01177331
Message ID:
01177338
Views:
13
Hi Don,

your understanding is incorrect :)

the #INCLUDE only works for the program/form/class that explicitly has it.

You will need to include the file in all your classes, programs etc. that you use the constants in.

>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
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform