Bug? Debug Run and Compile Results Differ

Discussion in 'Bug Reports' started by epsharp, Feb 8, 2011.

  1. epsharp

    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
     

    Attached Files:

    • Test.sbp
      File size:
      457 bytes
      Views:
      168
  2. Erel

    Erel Administrator Staff Member Licensed User

    Time(Now) returns a string. You can not add 0 to it.
     
  3. mjcoon

    mjcoon Well-Known Member Licensed User

    That's a good reason for not writing
    Code:
    curTime = Time(Now) + 0
    It isn't an explanation of why "Debug Run and Compile Results Differ".

    Mike.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice