Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE preprocessor directives
Message
From
10/03/2007 01:48:37
 
 
To
10/03/2007 00:45:44
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
Miscellaneous
Thread ID:
01202495
Message ID:
01202496
Views:
10
Reza

check the help for #define. The constant is only available in the program that creates it.

Nick

>Hi all,
>I want to use from #DEFINE. but i have problem with use of it
>
>*** Program1.prg
>#DEFINE MAXITEMS 10
>DO program2.prg
>
>*** Program2.prg
>CLEAR
>FOR gnCount = 1 TO MAXITEMS
> ? gnCount
>NEXT
>
>*** ERROR : Variable 'MAXITEMS' is not found.
>
>i think i am wrong in use of this command.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform