Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement