Help - Search - Members - Calendar
Full Version: How to display %play_count% with leading zeros
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
Wandering Cloud
Currently, when I sort my music by the playcout column (having just inputted [%Play_Count%]) they sort by 1, 10, 2, 20, 3. Which to say the least, is really annoying. So I was wondering, what coding would I have to do to make a 0 appear in front of 1 so that it formats 01, 02, 03, 10, 20? I've tried doing it myself, but I'm afraid I'm rather poor at such matters, my best attempt being "$pad(%field%,6,'0')".

However, that was in 9.4.5, and it didn't work anyway.

Help?
pIv
You must use next string: $num([%play_count%],2)
Frank Bicking
Or, if you don't want to see "00" for tracks that have never been played, use: [$num(%play_count%,2)].
Wandering Cloud
Thank you smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.