Options

Time counting

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

Comments

  • Options
    krikikriki Member, Moderator Posts: 9,090
    [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!


  • Options
    jglathejglathe 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.
  • Options
    lvanvugtlvanvugt 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
  • Options
    ppindianppindian Member Posts: 6
    Thank you for your help, I try it.
Sign In or Register to comment.