ThunderForest
IS-IT--Management
When this code runs, it works the first time, but an exception (EAccessViolation) occurs the second, etc. time when showModal is executed again, with or without the editBox value assignments. Code behind the two buttons on ccChangeForm is
and
What am I missing?
Getting answers before I'm asked.
Providing answers if I can.
Code:
modalResult := mrOK
Code:
modalResult := mrCancel
Code:
If (ccChangeForm = nil) then begin
ccChangeForm := TccChangeForm.Create(nil);
end;
ccChangeForm.oldThingNo.text := FormA.QueryA.fieldByName('Thing').asString;
ccChangeForm.oldDateReq.text := FormA.QueryA.fieldByName('DateRequested').asString;
ccChangeForm.showModal;
ccChangeForm.free;
Getting answers before I'm asked.
Providing answers if I can.