Time counting

ppindian
ppindian Member Posts: 6
Hello,
I have a question: how to sum data type TIME
thanks

Comments

  • kriki
    kriki Member, Moderator Posts: 9,121
    [Topic moved from 'NAV Tips & Tricks' forum to 'NAV/Navision Classic Client' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • jglathe
    jglathe Member Posts: 639
    Should work with an integer... Like mytime := mytime + 1000 to add a second.
    A direct addition of two time variables makes no sense. The subtraction of two time variables gives the delta in milliseconds.
  • lvanvugt
    lvanvugt Member Posts: 774
    jglathe wrote:
    Should work with an integer... Like mytime := mytime + 1000 to add a second.
    Right!
    jglathe wrote:
    A direct addition of two time variables makes no sense.
    Also right.
    Note that TIME contains an instance in time not a duration.
    Luc van Vugt, fluxxus.nl
    Never stop learning
    Van Vugt's dynamiXs
    Dutch Dynamics Community
  • ppindian
    ppindian Member Posts: 6
    Thank you for your help, I try it.