
Originally Posted by
|2eM!x
is it possible for you to explain why I need these extra brackets {} at the end?
That's what indicates to the compiler that you're creating an array. In C# that's not required because the square brackets do the job. If you were to leave the braces off you'd have this:
VB Code:
Playlists = New tPlaylist(Names.Length - 1)
which would be interpreted as invoking a tPalylist constructor with an Integer argument and assigning the result to the Playlists variable. That's obviously not what you want and would fail due to mismatched types anyway.