Page 1 of 1

Fix Auto Capturing Date

Posted: February 3rd, 2019, 5:06 am
by Socio
Dear members

Need help.
Like auto capture time, where the first time impression is fix (not changing after reopening also) by using
PROC TIME
Preproc
if visualvalue (TIME) = notappl then
$=timestamp();
endif;
Can we do the same for DATE, auto capture
Presently I'm using
PROC DATE
preproc { must immediately follow the "PROC" declaration }
TIME = sysdate("DDMMYYYY");
Thank you

Re: Fix Auto Capturing Date

Posted: February 4th, 2019, 7:44 am
by Gregory Martin
You probably want to assign the result of sysdate to DATE, not TIME. You can do the same thing as with TIME:
PROC DATE

preproc

    if visualvalue(DATE) = notappl then
        DATE = sysdate("DDMMYYYY");
    endif;

Re: Fix Auto Capturing Date

Posted: February 5th, 2019, 2:26 am
by Socio
Thanks Gregory