Home » Developer & Programmer » Forms » PRAGMA trapping
PRAGMA trapping [message #82057] Thu, 17 April 2003 01:28
Come and try this one, wh
Messages: 1
Registered: April 2003
Junior Member
hi,
I can trap 06052 errors in report 6i (After pform trig)
but not -01843,-01847 and a few others relating to date format input mask errors. Anyone know why?

Thanks.
N.

Here's how I do it: (in after pform trig)
-------------------------------------------
date_invalid EXCEPTION;
PRAGMA EXCEPTION_INIT (date_invalid, -01843);

BEGIN

...
...
EXCEPTION
when date_invalid THEN srw.message('Date must in Format ''DD-MON-YYYY'' !');
RETURN ( FALSE );
END;
Previous Topic: scrollbar in Oracle Forms 6i
Next Topic: Copying tables
Goto Forum:
  


Current Time: Thu Apr 25 13:50:08 CDT 2024