Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#INCLUDE problems....
Message
De
01/11/1999 16:50:49
 
 
À
01/11/1999 16:44:05
Paul Wyett
Resource Link Software
Calgary, Alberta, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00285084
Message ID:
00285085
Vues:
23
>I am trying to include a header file using #INCLUDE. The program compiles without errors and the file is in the default directory, but nothing in that file is read, all declared variables are coming up undefined. What am I doing wrong?
>
>file example:
>* Application Constant Header file efgconst.h
>
>#DEFINE GUESTLEVEL 1
>#DEFINE USERLEVEL 2
>#DEFINE ADMINLEVEL 3
>
>* end of header file
>
>
>*code
>Set path to c:\vfp
>#INCLUDE efgconst.h
>
>Guestlevel, userlevel, and adminlevel variables are undefined.
>
>
>Thanks,
>
>Paul Wyett

I just tried a really simple test.

I created a program called a.prg.

*code
#INDLUDE A.H
?A

The header file contains
#DEFINE A 5

The program prints 5. Ofcourse in the debug window these values will not be shown.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform