Hi All,
I’m sure I am missing something obvious here, but for the life of me I can’t see what it is. I recently upgraded from PBCC4.0 to PCBB5.0 and have a curious problem with equates.
My program is quite large and has been broken down into several smaller files with common numeric and string equates being defined in their own file and ‘INCLUDED’ at the top of the main source code.
The program structure is a little like this …
Main Source File <-- Main File
..
..
#INCLUDE “Myfile1.Inc” <-- First (Nested) Include File
..
..
#INCLUDE “Myfile2.Inc” <-- Second (Nested) Include File
..
..
#INCLUDE “Myfile3.Inc” <--Third (Nested) Include File
..
%MyNumericEquate = 1
..
<EOF>
<EOF>
<EOF>
..
PRINT “My Equate =”+STR$(%MyNumericEquate) <-- Main File
END
‘MyNumericEquate’ is defined in a nested include file (Max nesting level = 4 including the main source file), the result when printed is ‘My Equate = 1’ as you would expect.
My problem is this, if I change %MyNumericEquate=0, then run the program again, I still get the same result, i.e. ‘My Equate = 1’ ???
This works fine in PBCC4.0, what new about equates in PBCC5.0? Anyone have any ideas?
I’m sure I am missing something obvious here, but for the life of me I can’t see what it is. I recently upgraded from PBCC4.0 to PCBB5.0 and have a curious problem with equates.
My program is quite large and has been broken down into several smaller files with common numeric and string equates being defined in their own file and ‘INCLUDED’ at the top of the main source code.
The program structure is a little like this …
Main Source File <-- Main File
..
..
#INCLUDE “Myfile1.Inc” <-- First (Nested) Include File
..
..
#INCLUDE “Myfile2.Inc” <-- Second (Nested) Include File
..
..
#INCLUDE “Myfile3.Inc” <--Third (Nested) Include File
..
%MyNumericEquate = 1
..
<EOF>
<EOF>
<EOF>
..
PRINT “My Equate =”+STR$(%MyNumericEquate) <-- Main File
END
‘MyNumericEquate’ is defined in a nested include file (Max nesting level = 4 including the main source file), the result when printed is ‘My Equate = 1’ as you would expect.
My problem is this, if I change %MyNumericEquate=0, then run the program again, I still get the same result, i.e. ‘My Equate = 1’ ???
This works fine in PBCC4.0, what new about equates in PBCC5.0? Anyone have any ideas?

Comment