TIP: Click on subject to list as thread! ANSI
echo: delphi
to: BART BROERSMA
from: KONSTANTIN KIPA
date: 1997-03-26 10:33:00
subject: Trapping Exceptions from TMemo

Пpиветствую Вас, многоуважаемый Bart!
Однажды, Sun Mar 23 1997, Bart Broersma взял, да и написал для All:
 BB> I tried this:
 BB> try
 BB>   FName := OpenRtf.FileName;
 BB>   Memo1.Lines.LoadFromFile(FName);
 BB> Except
       on E: Exception do
         MessageDlg(E.Message, mtInformation, [mbOk], 0);
       {
 BB>   on E: EInOutError do
          Where you use E.ErrorCode (you need to do this, if you want use
EInOutError exception class). Using ErrorCode (i think so) clear exception 
from
exception list...
 BB>   begin
 BB>     MessageDlg(E.Message,mtInformation,[mbOk],0);
 BB>   end;
       }
 BB> end;
                          Всего Вам желаю, Konstantin. AKA 2:5061/24.61
---
---------------
* Origin: kotya@extranet.ru (FidoNet 2:5061/19.17)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.