Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with #include directive in VFP 8
Message
De
28/10/2003 07:54:32
 
 
À
28/10/2003 07:29:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00843418
Message ID:
00843459
Vues:
33
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform