Hello Tim
the prob with getting the length from the size is;
the bitrate, length and format all change the size
a 5 minute WMA at 96k(bitrate) might = 100kb
and
a 5 minute WMA at 128k(bitrate) might = 180kb
so it is a hard thing to nail down, and I tried a couple tricks and couldn't get it to be 100% over here
>Hello,
>
>I am using VFP 6.0 and wonder if there is a function, similar to FSIZE(), that would calculate the length of a song (.wav or .mp3) in minutes:seconds based on the file's size in bytes. I've been able to write the code to perform this task, not very pretty code, but wondered if a function exists in VFP, or if someone knows of some elegant code to perform the task.
>
>Thanks in advance,
>
>Tim