Page 1 of 1

@strnow

Posted: Mon Jan 16, 2012 4:46 pm
by GeoffC
I wonder if there's a bug in this function? This test program always displays a time where the hours and seconds are correct, but minutes is always set to "01". I'm using v7.2, 5th Jan 2012 build.

Code: Select all

for !i = 1 to 1000 %time = "Time no is: "+@strnow("HH:MM:SS") + ". Continue?" if @uiprompt(%time,"YN") = 2 then stop endif next
If not can you advise what I'm doing wrong?

tks
Geoff

Re: @strnow

Posted: Mon Jan 16, 2012 4:49 pm
by EViews Gareth
"MM" is for month (currently January, or 01).

"MI" is for minute.

Re: @strnow

Posted: Tue Jan 17, 2012 12:44 am
by GeoffC
duh!