Hi !

How can i get the effective playing-time as a string in procedure OnPlayerStop ?


When “dur” is a TTimeValue variable, it can be converted into a string “s” as follows:

s := FormatTimeValue(‘hh:nn:ss’, false, dur);


First parameter is the format, as used by Delphi’s 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]