Discussions about CSEntry
Forum rules
New release: CSPro 8.0
-
Socio
- Posts: 48
- Joined: May 1st, 2017, 4:47 am
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
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
Post
by Socio »
Thanks Gregory