Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using #Include directive
Message
De
24/08/2004 09:44:33
 
 
À
24/08/2004 09:35:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00935893
Message ID:
00935899
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
Hello, Fernando
What are you trying to do?
the .h files are usually used just to include definitions, such as:
# define Message_2 "Step 2"
Which can be used later in your code:
#Include Test.h
Messagebox ("Step 1")
Messagebox (Message_2)
Messagebox ("Step 3")
HTH
Beth

>Hi,
>
>This is a very basic question, but as this is the first time I'm using this VFP feature, I'm having some problems.
>
>There is a file called Test.h containing:
>
>Messagebox ("Step 2")
>
>
>Also there is a prg called Test.prg containing:
>
>
>Messagebox ("Step 1")
>
>#Include Test.h
>
>Messagebox ("Step 3")
>
>
>When I DO test.prg I just get messages "Step 1" and "Step 3". No "Step 2" message appears.
>
>In the Help File it says:
>
>#INCLUDE Preprocessor Directive
>
>"Tells the Visual FoxPro preprocessor to treat the contents of a specified header file as if it appeared in a Visual FoxPro program."
>
>What am I doing wrong?
>
>TIA,
>
>Fernando
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform