It looks like you're new here. Sign in or register to get started.
IF "end time " <>0T THEN "start time" :=("end time " - "start time")/3600000;
StartingTime := 1400T; EndingTime := 1401T; MESSAGE(FORMAT(EndingTime-StartingTime));
Comments
You can use this:
Hope this will help.
Put the code in OnAfterGetRecord(end time and start time)
if you substract two field (variable) of type time, you will get an integer, which contains the time between your two field (variable) in miliseconds. The Result will be 60000.
You can also use a variable with type Duration for the result.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.