Listing all songs ends too early

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Listing all songs ends too early

Listing all songs ends too early

by sebastiaankop » Sun Apr 07, 2024 11:05 am

Hi all,

i'm trying to list all songs to a file using SDB.AllVisibleSongList. While I get the correct song count (31000+) the script generates an error on record 5201. Trying to start with that record works. but then it gives another error a lot of records later (not the same number, not incremental).

Code: Select all

    dim list, i
    set list = SDB.AllVisibleSongList
    oFile.WriteLine(list.Count)
    for i = 0 to list.Count-1
        oFile.WriteLine(i & " [" & list.item(i).Title & "]")
    next
Does anyone has an idea why this happens?

Regards,
Sebastiaan.

Top