AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

TRY...EXCEPT-Fehler

Ein Thema von simlei · begonnen am 2. Aug 2007 · letzter Beitrag vom 2. Aug 2007
 
simlei

Registriert seit: 23. Nov 2005
119 Beiträge
 
Delphi 7 Professional
 
#1

TRY...EXCEPT-Fehler

  Alt 2. Aug 2007, 15:08
Ich hatte wieder etwas mahcen wollen wo gerne Fehlerchen auftreten. früher hatte ich einmal zum abfangen folgende Konstruktion verwendet:

Delphi-Quellcode:
try
    ShowMessage('BLUB');
except
    on E: Exception do ErrorDialog(E.Message, E.HelpContext);
end;
aber nicht einmal diese Beispiel, was so auch in der Delphi-Hilfe angegeben ist:

Zitat:
An exception handler can specify an identifier before the name of the exception class. This declares the identifier to represent the exception object during execution of the statement that follows on...do. The scope of the identifier is limited to that statement. For example,

try
...
except
on E: Exception do ErrorDialog(E.Message, E.HelpContext);
end;
funktioniert, es kommt: "Class Type required". Was zu tun?
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 00:42 Uhr.
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