CD_LASTTRACK

Syntax CD_LASTTRACK
Location SMSQ/E for QPC

This function will return the track number of the last track on the CD currently in the player.

CROSS-REFERENCE

CD_FIRSTTRACK allows you to find out the first track number.

CD_TRACK tells you the track number currently playing.