Hallo,
ich habe eine Form indem ich mit einem Button ein weiteres Form aufrufe. Beide fsMDIChild. Nun Verlasse ich das zweite Formular und habe beim OnClose Ereignis folgenden Code:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9:
| procedure TKontoSuchenFrm.FormClose(Sender: TObject; var Action: TCloseAction); begin SucheKontoQry.Close; SucheKontoSrc.DataSet := NIL; if ProgOptions.Common.WindowPosition then ToolsForm.SaveWindowPosition(Self); Action := caFree; TForm(Self) := nil; end; |
Frage ich dann im ersten Formular ab ob das zeite nil ist, ist es nicht nil warum nicht?
Hat jemand eine Idee, bin schon am verzweifeln.
Walter
Moderiert von
Martok: Delphi-Tags hinzugefügt