Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visibility of defined constants
Message
De
13/12/2006 14:11:13
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Visibility of defined constants
Divers
Thread ID:
01177331
Message ID:
01177331
Vues:
69
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform