Hi !
How can i get the effective playing-time as a string in procedure OnPlayerStop ?
Thx
Hi !
How can i get the effective playing-time as a string in procedure OnPlayerStop ?
Thx
When “dur” is a TTimeValue variable, it can be converted into a string “s” as follows:
[code]
s := FormatTimeValue(‘hh:nn:ss’, false, dur);
[code]
First parameter is the format, as used by Delphi’s FormatDateTime: http://www.delphibasics.co.uk/RTL.asp?Name=FormatDateTime - you can also use the ! sign to mark the point at which truncation should take place (see next parameter)
Second parameter is: Should leading 0’s be truncated (up to the ! sign) automatically for small values.
Third parameter is the duration as TTimeValue (number of seconds, floating point).[/code]