E epsharp Member Licensed User Longtime User Feb 8, 2011 #1 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 Test.sbp 457 bytes · Views: 358
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
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2011 #2 Time(Now) returns a string. You can not add 0 to it.
M mjcoon Well-Known Member Licensed User Feb 8, 2011 #3 Erel said: Time(Now) returns a string. You can not add 0 to it. Click to expand... 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.
Erel said: Time(Now) returns a string. You can not add 0 to it. Click to expand... 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.