Hi,
I am trying to create a dialog box where I can show an estimation on how long it will take to performe a task. In this case, I know it might take a long time so I want to give the user an idea on how long it will take.
The real problem is when I want to represent the duration in this notation: hh:mm:ss.
I know that the formula time1 minus time2 (dur := time1 - time2) results in a duration value.
I can show it with its basic notation. For example: '1 minute 10 seconds 136 milliseconds'
What I would like to do is show it as: 00:01:10 (hh:mm:ss).
I've tried to use the format function but it doesn't work:
FORMAT(durRemaining,0,'<Hours24,2>:<Minutes,2>:<Seconds,2>')
I get the error: Internal Error 47-1. It has something to do with the fin.stx file.
Any help is welcome.
Cheers,
Joao
0
Comments
Run the form through the Object Designer, then close the form. The duration will then be displayed.
And as usual, most solutions are the simple ones.
All it takes to show the duration in 'hh:mm:ss' notation is to create a time variable (timeDuration) and then do the following:
timeDuration := 000000T + durDuration;
It's that simple.
Cheers,
Joao
jpjesus@netcabo.pt