Okay guys, once again I am stumped.
I am trying to switch of the part of my program past the login screen to MDI.
I am doing this so that they may have the query window open to see masses of data at the same time they can go in and edit a few values and know which path to take to get there.
Anyways, I am having problems setting up the MDI.
It is there, but keeps giving me access violations.
I know precisely where too, I just do not know why.
I can NOT have the MDI Parent form change values on the child form or have the children access values on the parent.
For example:
Will not work.
If I comment out the Form3.ProCount line it works just fine.
In the activation of Form3, if I have it say ProCount := Form2.Counter, it will give me an access violation then as well.
Why can they not access each other's variables?
~
Give a man some fire, he will be warm for a day, Set a man on fire, he will be warm for the rest of his life.
I am trying to switch of the part of my program past the login screen to MDI.
I am doing this so that they may have the query window open to see masses of data at the same time they can go in and edit a few values and know which path to take to get there.
Anyways, I am having problems setting up the MDI.
It is there, but keeps giving me access violations.
I know precisely where too, I just do not know why.
I can NOT have the MDI Parent form change values on the child form or have the children access values on the parent.
For example:
Code:
procedure TForm2.FormActivate(Sender: TObject);
begin
TForm3.Create(Application);
Form3.ProCount := 5;
end;
If I comment out the Form3.ProCount line it works just fine.
In the activation of Form3, if I have it say ProCount := Form2.Counter, it will give me an access violation then as well.
Why can they not access each other's variables?
~
Give a man some fire, he will be warm for a day, Set a man on fire, he will be warm for the rest of his life.