Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loneliness is ... NOT being #INCLUDE
Message
De
29/05/1997 18:58:46
 
 
À
29/05/1997 16:51:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00034104
Message ID:
00034191
Vues:
31
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
Fil
Voir

Click here to load this message in the networking platform