Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01194874
Message ID:
01194882
Views:
11
>Tommy,
>
>You need to #DEFINE it in all modules that are compiled separately, which is not convenient, I believe.
>See if you can declare MAXRXS as a variable that can be used further in the called modules.

I thought about just using a Global Variable for this purpose, but I thought I'd use the precomiler and do the DEFINE. I've not used it myself before, and now I see why.... sigh.

Thanks.

>
>>Hi Gang!
>>
>>Problem today is this.......
>>
>>I wanted to change some legacy code from this......
>>(which is in a Form)
>>
>>
>>For y = 2 To 20
>>   blah blah blah
>>Endfor
>>
>>To this
>>
>>For y = 2 To MAXRXS
>>   blah blah blah
>>Endfor
>>
>>
>>Using a #DEFINE statment....
>>(located in the MAIN.prg which calls the above Form)
>>
>>#DEFINE MAXRXS 20
>>
>>When I run the code, it bombs out with a "Variable MAXRXS not found".
>>
>>I recompile, rebuild...etc... but no luck.
>>
>>Where would you look?
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform