In article <52bok1$adk@nic.global-one.no>,
Nils Myklebust <Nils.Myklebust@idg.no> wrote:
>louislam@iastate.edu (Louis C Lam) wrote:
>:I have a 4GL Form with a field to fill in a date, but I would like
>:it to automatically enter a default value of TODAY + 7 (a week from
>:today). The date may also need to be modified if TODAY +7 happens
>:to be a holiday.
>
>: day1 = formonly.day1 type date,
>: default = TODAY + 7;
>:but it gives me an error. If I just use "default = TODAY" it works just
>:fine.
>
>Yes. Set your default in your 4GL code before you enter the input
>statement, and use without defaults in that statement.
Or, set it in a BEFORE FIELD <first field> clause, e.g.
BEFORE FIELD firstfld
LET rec.datefld = today + 7
DISPLAY BY NAME rec.datefld
--
Alan Denney aland@informix.com Kia toa, e nga Mango!
"Folks, we now embark on a great crusade: to stamp out runaway
decency in the West." -- Hedley Lamarr