thx for the reply! I did not get the notification for your reply, and found out by myself by trying.. But thank you!
I did not think it could be that straight forward even without any escape character for < or /.. so

thx,
Bernhard
Code: Select all
Option Explicit
Dim Mask : Mask = "<Artist>%<Year>%<Album>" 'mask for artist albums
Dim TrackMask : TrackMask = "" 'blank mask means no tracks are displayed
Dim CompMask : CompMask = "<Artist>%<Year>%<Album>" 'mask for compilation albums
Dim FirstMask : FirstMask = "" 'mask for first track in an album
Sub JustListAlbums
Dim list : Set list = SDB.CurrentSongList
If list.Count = 0 Then
Call SDB.MessageBox( SDB.Localize("Please select tracks to be exported."), mtError, Array(mbOk))
Exit Sub
End If
Dim fso : Set fso = SDB.Tools.FileSystem
Dim path : path = "D:\Temp\Albums.txt"
I can try, if you give me a brief descripion.trixmoto wrote:I don't know what to say really, if you've specified the date with a 4 digit year then this should definitely be working, because that's what I always do. If I gave you some SQL to run, would you know how to?
It does work for me either... It was OK in previous versions but can't tell in which one it has stopped working.Musikkius wrote:They all returns the value 0 into the variable "theyear", resulting in ???? as the date in the text-file.
(...) If so, any suggestions on why it doesn`t work on my machines?
I have the script working and I import into Excel to put the data in columns. However, I am only seeing three fields: artist, album, and some number (xx/xx) appended to the Album title. I can't find the mask you speak of to change the fields displayed.You might need to change the mask variables at the top of the script to include the fields you wish to be displayed.