home *** CD-ROM | disk | FTP | other *** search
- /* This example will demonstrate the use of the get_track_length command
- in AsimTunes.
-
- (C)1993-1995 Asimware Innovations Inc. */
-
-
- options results
-
- address "AsimTunes_ARexx"
-
- get_track_length
- if rc ~= 0 then do
- say 'Failed with 'rc'.'
- exit
- end
-
-
- total_secs = result
- say 'Current Track is' total_secs 'seconds long.'
-
- minute = trunc(total_secs / 60)
- seconds = total_secs // 60
- say 'In MM:SS, this is' minute':'seconds
-
- exit
-