Han777
Programmer
- Dec 12, 2007
- 19
As a professional trading system developer writing Delphi dll for NeoTicker, I've recently advanced from procedural to Object Oriented Programming and am having trouble referencing across units.
If in Delphi unit1 a procedure of a class named Dad assigns a value to its public variable DadsVar, and a procedure in unit2 creates an instance of Dad, how does an unrelated procedure in unit3 correctly reference Unit2's instance of that public variable, DadsVar, in unit2's instance of Dad?
Would it be Unit2.Dad.DadsVar That doesn't seem to work for me.
If in Delphi unit1 a procedure of a class named Dad assigns a value to its public variable DadsVar, and a procedure in unit2 creates an instance of Dad, how does an unrelated procedure in unit3 correctly reference Unit2's instance of that public variable, DadsVar, in unit2's instance of Dad?
Would it be Unit2.Dad.DadsVar That doesn't seem to work for me.