Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loneliness is ... NOT being #INCLUDE
Message
From
29/05/1997 18:58:46
 
 
To
29/05/1997 16:51:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00034104
Message ID:
00034191
Views:
34
David,

I agree regarding VFP #Include file limitations, and also seem to remember including actual code in some FPW programs.

In other words, it looks like we have gone backwards in capability here.

regards,
Jim N

>>Let's say I have:
>>
>>* PROGRAM1.PRG
>>#INCLUDE c:\temp\special.prg
>>? test*2
>>RETURN
>>
>>* c:\temp\special.prg
>>test=5
>>
>>
>>
>>An error is generated saying "test" is undefined.
>>
>>I thought #INCLUDE includes the file.
>>If the file is included, why is "test" undefined?
>>
>>Thanks,
>>Gene
>
>In VFP, #include files can only have preprocessor statements. Normally executed statements cannot be in those files.
>
>This is somewhat of a surprise, since the preprocessor was modelled after the preprocessor in C and Clipper, which both support the inclusion of source code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform