Page 1 of 1

Automatic fill of time field

Posted: June 19th, 2015, 2:35 am
by Guest
Is it possible to automatically fill time field such as interview start time?

Re: Automatic fill of time field

Posted: June 19th, 2015, 10:59 am
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

Re: Automatic fill of time field

Posted: June 19th, 2015, 8:21 pm
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

Re: Automatic fill of time field

Posted: June 20th, 2015, 7:33 am
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