community.borland.com

Article #15109: VARIABLES IN UNITS CHANGES NOT REFLECTED

 Technical Notes Database

TN109D.txt   VARIABLES IN UNITS CHANGES NOT REFLECTED
Category   :Pascal
Platform    :All
Product    :Turbo Pascal  4.0+

Description:
Q. I moved some variables into a unit.  When I change a variable
   in the program, the change is not reflected in the unit used
   by the program.  Why?
A. Remove the duplicated variable definitions from the main
   program. Variables to be used in both a unit and a main
   program must be declared only in the interface portion of the
   unit.


Reference:


7/16/98 4:35:29 PM
 

Last Modified: 01-SEP-99