Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#INCLUDE - VFP Preprocessor file
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00863051
Message ID:
00863178
Views:
21
>Okay, I went back to the one set of code where this worked perfectly and found that the
>
>
#INCLUDE CONSTANTS.H
>
>statement was not in the INIT of my form, but in the actual procedure within the form where it was needed right away. I assumed that if it were in the INIT that it would carry through in a GLOBAL manner on the form level, but that is not the case.
>
>The #INCLUDE has to be placed precisely where it is needed, if in a form, then right in the procedure in the form where it is needed. Placing it in INIT event/procedure did not do the trick, since the
>
>
#DEFINE CRLF CHR(13) + CHR(10)
>
>was to be used in a procedure within the form.

For a form, you can use a global include file by going to the Form - Include File menu item and choosing the desired file.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Reply
Map
View

Click here to load this message in the networking platform