Board index » delphi » turn off global variables
Greg Shubert
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
turn off global variablesQuote> I am a high school teacher working with TP 7.0. I have noticed that parameters to functions or procedures) not accessible to these subprograms is to declare them after you declare the subprograms. This is allowed in Turbo Pascal (but not in standard Pascal). program name; const.... (* put needed global CONST and TYPE definitions here *) procedure that (parm: integer); var (* Put global declarations down here *) begin (* main *) Hope this helps. |