Hi Doru,
I've tried this in FPW 2.6 and it works fine. Maybe your machine is slow and in the time that it takes to evaluate the SECONDS() the PC clock may have ticked over. Try saving SECONDS() to a variable and then build your expression from the variable.
Regards,
Gavin...
>I can't believe this!
>On my workstation SECONDS() returns a value that is different in FPW 2.6 than in FPD 2.6/VFP 6.0.
>The TIME() function returns the same values FPD, FPW, or VFP. Translating TIME() return into seconds shows that SECONDS() value in FPW is wrong:
>
>
>?time(),padl(allt(str(int(seco()/3600),2)),2,'0')+':'+ ;
> padl(allt(str(int(mod(seco(),3600)/60),2)),2,'0')+':'+ ;
> padl(allt(str(mod(mod(seco(),3600),60),2)),2,'0')
>displays:
> 15:08:32 15:08:33 VFP - difference 1
> 15:08:33 <b>15:07:21 FPW - difference 72</b>
> 15:08:35 15:08:35 FPD - difference 0
>
>
>I tested this on a number of WS, the above discrepancy happens only on some.
>
>Power off/ power on, does not fix the problem.
>Using GPLIB library to syncronize the WS with the server, does not fix the problem.
>
>The network is Novell 5, stations are from 486 to Pentium III with Win 98 or Win 3.1, all WS are using MS client.
>
>Can anybody test this, or may be this is a known issue?
>
>Thank you,
>Doru