Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with #include directive in VFP 8
Message
From
28/10/2003 07:54:32
 
 
To
28/10/2003 07:29:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00843418
Message ID:
00843459
Views:
32
>>Dan,
>>
>>I remember trying this in the past. I had no luck either.
>>
>>According to the help, this is normal behaviour
>>
>>Only the #DEFINE ... #UNDEF and #IF ... #ENDIF preprocessor directives are recognized in a header file. Comments and Visual FoxPro commands included in a header file are ignored.
>>

>>
>>You'll have to change
>>
#INCLUDE includefile.prg
>>into
>>
=includefile()
>>or
>>=FunctionNameInIncludefile()
>>
>>so that the code will execute
>
>Of course, this is not the same as the behavior a programmer might expect from the #INCLUDE (but which doesn't actually work). The main problem is with variables defined in the thusly "included" procedure.

Not if you look at the original message ;-)
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform