For example when I'm trying to do something like this
form2.Edit1.text=form1.edit1.text
It gives me an access violation error.
The way form2 can use form1 variables is by adding
uses Unit1; var Form1:Tform1
to the implementation
The program compiles fine with no errors but when trying to actually access the edit1 from form1 it crashes with an error.
edit:
It seems like it is working when I'm adding unit1 to the "uses" list not under implementation but under interface
which means unit2 can edit unit1 but I cant add now unit2 to the uses of interface of unit1 circular unit reference
In short it meant
- unit2 can edit/view unit1
- unit1 cant edit/view unit2
So is there a way to make it possible without creating third frame which is refered by the two other units?