Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using #Include directive
Message
From
24/08/2004 11:55:03
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00935893
Message ID:
00935978
Views:
26
Hi Sergey,

If I tell you that I read and read again the help file and didn't get that, would you believe?

Thanks,

Fernando

>From VFP8 help:
>
>"Only the #DEFINE ... #UNDEF, #IF ... #ENDIF, and #INCLUDE preprocessor directives are recognized in a header file. Comments and Visual FoxPro commands included in a header file are ignored".
>
>
>>
>>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform