Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using #Include directive
Message
From
24/08/2004 12:04:23
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00935893
Message ID:
00935984
Views:
22
Hi Borislav,

>To have Messagebox("2"), You must change the program & header file:

Thanks, now I got the idea!

As I could see in the help file:

#DEFINE ... #UNDEF Preprocessor Directive

"You can use the #DEFINE and #UNDEF preprocessor directives to create compile-time constants in programs."

#DEFINE ConstantName eExpression...

eExpression

Specifies the value of the compile-time constant. eExpression can be a name or an expression that evaluates to a character, numeric, currency, date, datetime, or logical value.

There is a means to span eExpression across many lines?

Something like:
#Define StatementeSequence For I = 1 to 10
                               MessageBox (Str (I))
                           EndFor
Regards,

Fernando

>To have Messagebox("2"), You must change the program & header file:>
>
>
>** Test.PRG
>
>MessageBox("1")
>#inculde Test.h
>cTest
>MessageBox("3")
>
>
>
>***** Test.h
>
>#define cTest MessageBox("2")
>
Previous
Reply
Map
View

Click here to load this message in the networking platform