Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primer on header files.
Message
 
To
11/01/1999 15:02:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00174787
Message ID:
00174794
Views:
27
Are you trying to use the constant in another event/method? You need to have an #INCLUDE in each of them. If it's to be used in all projects, define it as a default include file under Tools/Options/File Locations (in VFP6 only).

>Can someone tell me how can I use .h files to define constants.
>
>I made the following h file:
>
>*invoice.h
>#DEFINE DOCUMENT_FEE 90
>#DEFINE SEAL_FEE 3
>#DEFINE VALIDATION_FEE 20
>
>And I try to include it using:
>
>#INCLUDE [..\invoice.h]
>
>in the load event.
>
>But when I call for the constant it isn't there.
>
>
>What am I doing wrong?
kenweber
GCom2 Solutions
Microsoft Certified Professional

Previous
Reply
Map
View

Click here to load this message in the networking platform