Fix Auto Capturing Date

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Socio
Posts: 48
Joined: May 1st, 2017, 4:47 am

Fix Auto Capturing Date

Post 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
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Fix Auto Capturing Date

Post 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;
Socio
Posts: 48
Joined: May 1st, 2017, 4:47 am

Re: Fix Auto Capturing Date

Post by Socio »

Thanks Gregory
Post Reply