Automatic fill of time field

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
Guest

Automatic fill of time field

Post by Guest »

Is it possible to automatically fill time field such as interview start time?
szso
Posts: 17
Joined: January 10th, 2015, 5:26 am

Re: Automatic fill of time field

Post by szso »

You make the field protected and put the following code in the postproc of the previous field
timefield=systime("HHMMSS");

or put that code in the preproc of the time field
Guest

Re: Automatic fill of time field

Post by Guest »

Thanks for the response. I tried the using the code
$=edit("99:99:99",systime("HHMMSS"));

But I get the following error message although I declared my time variable as alpha
ERROR: You must assign the result of the function to an alpha near line 1 in STIME procedure
szso
Posts: 17
Joined: January 10th, 2015, 5:26 am

Re: Automatic fill of time field

Post by szso »

Using the "edit" function will convert the output to an alpha variable so you have to convert your time field to alpha
Look at this post
http://www.csprousers.org/forum/viewtopic.php?f=7&t=484
Post Reply