> I have a form (MainForm) which calls a function in a unit I'm creating, > called DatabaseUtils. I want this unit to be able to have access to the > public variables etc. of the calling form, without needing to hardcode > into the DatabaseUtils unit, "uses MainForm". Any form could have > called my new unit. So how do I give my unit, access to the calling > form?
MainUnit.MainForm.MyVar := 32; Steve Steve Peacocke Lecturer, NZ Diploma in Business Lecturer, Bachelor of Computing Systems Waiariki Institute of Technology --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/