General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only