Hi, so i use
RemainingTime := 000000T + ROUND((ProcessingDuration / NoOfProgressed ) * ( NoOfRecs - NoOfProgressed ),1)
in my ProcessBar to roughly calculate the remaining time. This can give my an overflow issue during debugging because the max value i believe is 23:59:59.999?
is there a way to catch that error without casting the ProcessingDuration to an int first and calculating the time in an integer?
(obviously the same goes for the ProcessingDuration)
Answers
https://docs.microsoft.com/en-us/dynamics-nav/duration-data-type
EDIT: i found a solution which works for me , i can catch the error by first checking the remaining time in a duration variable , then if its >= 86400000 displaying that , and if not i will convert it to time.