Bug? Debug Run and Compile Results Differ

epsharp

Member
Licensed User
TimeFormat("HHmm")
curTime = Time(Now) + 0

At one minute past midnight, curTime shows 1 when run in debug mode.

It shows shows 00010 when run compiled.

The intent was to be able to test the curTime field for a series of early morning times without having to use the leading zeros.

Regards,

Ed Sharp
 

Attachments

Erel

Administrator
Staff member
Licensed User
Time(Now) returns a string. You can not add 0 to it.
 

mjcoon

Well-Known Member
Licensed User
Time(Now) returns a string. You can not add 0 to it.
That's a good reason for not writing
B4X:
curTime = Time(Now) + 0
It isn't an explanation of why "Debug Run and Compile Results Differ".

Mike.
 
Top