Re: How can I trap this error

From: Valeri Sorokine <vsorokin_at_dd.ru>
Date: Fri, 30 Apr 1999 20:07:08 +0400
Message-ID: <3729D52C.88CA4447_at_dd.ru>


Hi Ken,

My answer will reach you after a half hour, and may be somebody helped you already :), but anyway, try this:

IF NOT TEXT_IO.IS_OPEN(in_file) THEN
  ...
  message('File not found...');
  ...
END IF; Hope this helps.

Ken Halsted wrote:
>
> How can I trap the error that would result because of the follwing line (I'm
> using Forms 5.0) :
>
> in_file := Text_IO.Fopen(cybmenu_name,'r');
>
> If cybmenu_name does not exist. Is this possible? Please help.
>
> Thanks,
>
> Ken.
>
> --
> _________________
> Kenneth W. Halsted
> Mountaire Corporation
> ph: (501) 399-8812
> url: http://www.mountaire.com
> email: kenman_at_mail.snider.net

-- 
Valeri Sorokine
ProSoft, Russia, Moscow, Information Systems Division
Phone: +7 (095) 234 0636 (6 lines) FAX: +7 (095) 234 0640
E-mail: vsorokin_at_dd.ru OR vsorokin_at_prosoft.ru
http://www.dd.ru
Received on Fri Apr 30 1999 - 18:07:08 CEST

Original text of this message