Board index » delphi » Unable to close form on error
pedro.thormod...@login.eunet.no (Pedro E. Thormodsen)
![]() Delphi Developer |
Fri, 20 Nov 1998 03:00:00 GMT
|
pedro.thormod...@login.eunet.no (Pedro E. Thormodsen)
![]() Delphi Developer |
Fri, 20 Nov 1998 03:00:00 GMT
Unable to close form on errorI have the following code: ... procedure TfrmLager.FormCreate(Sender: TObject); ... My problem is that if the EDataBaseError is true, the frmLager.Free Pedro |
Andreas Troest
![]() Delphi Developer |
Sat, 21 Nov 1998 03:00:00 GMT
Re:Unable to close form on errorPedro E. Thormodsen (pedro.thormod...@login.eunet.no) wrote: : .... : procedure TfrmLager.FormCreate(Sender: TObject); : .... : My problem is that if the EDataBaseError is true, the frmLager.Free : Pedro I dont think you can prevent the form from being created by a call to Procedure TFrmLager.OnActivate(Sender: TObject); This works satisfactory for me. However, if someone has a different (and Hope this helps Andy |
H. van der Waa
![]() Delphi Developer |
Thu, 26 Nov 1998 03:00:00 GMT
Re:Unable to close form on errorQuotePedro E. Thormodsen wrote: HJW |
Bengt Richt
![]() Delphi Developer |
Sun, 29 Nov 1998 03:00:00 GMT
Re:Unable to close form on errorpedro.thormod...@login.eunet.no (Pedro E. Thormodsen) wrote: Quote>I have the following code: and use frmLager.Release; instead of frmLager.Free. You might want to handle inifile-related exceptions too, which I haven't shown. Hope this is a useful reaction. I haven't tested it. {Frigir minne fra inifilen} |
1. Cannot Create Form Error when Closing Forms
2. ** Can I close the prior form without close second form ?**
3. Form Close - Invalid Parameter error
4. Closing First MDI Form Causes Errors
6. Form Close - Invalid Parameter error
7. error @ closing form with TTable