>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