Re: Check date value in 4gl
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL
From: "Obnoxio The Clown" <obnoxio@hotmail.com> > >From: steveFarris <nlymbo@mindspring.com> >> >>How can i check the date value to make sure the user entered something >>into a form. For instance, the following does not work... >> >>input by name d1 >> >>after field d1 >> if (length(d1) == 0) then What the heck is (length(d1) == 0) anyway? This isn't a C compiler, you know! <Drum roll, please, maestro!> RTFM!! (How was that, Jonathan? :0) >> next field d1 >> end if > >AFTER FIELD d1 > IF d1 IS NULL > THEN > NEXT FIELD d1 > END IF >________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Obnoxio The Clown wrote: > From: "Obnoxio The Clown" <obnoxio@hotmail.com> > >From: steveFarris <nlymbo@mindspring.com> > >>How can i check the date value to make sure the user entered something > >>into a form. For instance, the following does not work... > >> > >>input by name d1 > >>after field d1 > >> if (length(d1) == 0) then > > What the heck is (length(d1) == 0) anyway? This isn't a C compiler, you > know! > > <Drum roll, please, maestro!> > > RTFM!! > > (How was that, Jonathan? :0) Very good. Now go and do as you advised Steve, and read the manual (version 7.3 edition, please!). Then report the omission of the '==' operator to the doc@informix.com alias, as documented in TFM you're going to R. :-) Oh, and see my other posting on this subject! > >> next field d1 > >> end if > > > >AFTER FIELD d1 > > IF d1 IS NULL > > THEN > > NEXT FIELD d1 > > END IF In case you are wondering: Yes, Obnoxio and I had a little discussion earlier about the use of RTFM. -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v1.00.PC1 -- see http://www.perl.com/CPAN #include <disclaimer.h>