Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best approach about #DEFINE constants
Message
 
To
14/05/2008 09:26:29
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01316940
Message ID:
01316941
Views:
13
Hi Tony,
(fix bugs...)
1) create formx.h for all forms
#INCLUDE "form.h" 
#INCLUDE "other.h"
2) create form.h for forms (contain constants only for forms)
#DEFINE __FORM_BASIC 1
3) create other.h (contain others constants)
#DEFINE __OTHER_BASIC 1
4) set for all forms this include file: formx.h


MartinaJ


>Hi.
>I'm using VFP9 SP2.
>I have some constants that I tried to declare
>using #DEFINE. These constants must be used
>throughout my application (forms and procedures).
>The problem with #DEFINE is that the constants are
>only visible within the program that created them.
>How to make some constants, lets say, "PUBLIC"?
>Thanks!
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform