Mike Aubury wrote:
> I'm trying to test a bug report for Aubit4GL - can someone with Informix 4GL
> try this code :
>
>
> main
> define xdate date
> let xdate="31/31/31"
> display xdate
> end main
>
>
> Does it error out - or just display xdate as being null (ie blank) and not
> say anything?
>
>
> Aubit currently errors out :
>
> Err:Program stopped at 't1.4gl', line number 4.
> Error status number -30087.
> Error in conversion.
>
> 4gl function call stack :
> MAIN
>
> (Although you could obviously "whenever error continue" over it)
>
> Which is what I thought Informix 4GL would do....
>
It depends on whether you have WHENEVER ANY ERROR handling set. By
default, as others confirmed, it will continue. You can make it stop
by saying "WHENEVER ANY ERROR STOP". OTOH, that is a hack, pure and
complex (anything but simple), because of changes made
semi-consciously in I4GL 4.10 and progressively fixed in later
versions. (The first release I was directly involved in was 4.12;
part of the progressive fixing phase.)
--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2003.04 -- http://dbi.perl.org/