Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE
Message
 
To
15/06/2000 07:24:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00379262
Message ID:
00380690
Views:
19
They are used to include or exclude blocks of code. Cool for debugging stuff. Ex:

#DEFINE DEBUGMODE .T.

#IF DEBUGMODE
ON KEY LABEL F3 DEBUG
#ENDIF

When DEBUGMODE is .T. the OKL is compiled into the code. When .F. it's not compiled in the code.

I'm there are many other uses as well

hth

>Roi
>
>What about the #IF.....#ENDIF statement, what would the purpose of these be?
>
>Thanks
>Kev
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Previous
Reply
Map
View

Click here to load this message in the networking platform