Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Trotz try...finally: Exception "Klasse nicht registriert" (https://www.delphipraxis.net/47333-trotz-try-finally-exception-klasse-nicht-registriert.html)

Mamphil 9. Jun 2005 14:49

Re: Trotz try...finally: Exception "Klasse nicht regist
 
Aaaahh!

Dankeschön! Ich hatte wie Matze gedacht. Und beim Testen in der IDE kommt in beiden Fällen die längere Fehlermeldung. Wenn ich allerdings das Programm mit dem neuen Code
Delphi-Quellcode:
  // Ist Excel installiert? (zum Einlesen / Abspeichern der Spielpläne)
  XLApp := TExcelApplication.Create(Self);
  try
    XLApp.Connect;
    XLApp.Disconnect;
  except
    Hauptform.ImportierenXLS1.Enabled := false;
    Hauptform.ExportierenXLS1.Enabled := false;
  end;
direkt ausführe, klappt alles so, wie es klappen soll (c:

Noch einmal: Vielen Dank!

Mamphil


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:15 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz