Problem Converting # to Array item
Ok, I have the following:
In general declarations:
VB Code:
Option Explict
Public Matrix
In my Form_Load event:
VB Code:
Matrix = Array("Blues", "Classic Rock", "Country", "Dance", "Disco", "Funk", "Grunge", _
"Hip -Hop", "Jazz", "Metal", "New Age", "Oldies", "Other", "etc.")
That's just part of the array, I didn't want to waste space in the post with ALL the genres.
I am able to read my ID3v1 tag and get the genre #. I can't seem to get it to convert to the text-name of the genre listed in my array. Here's the code I'm using:
VB Code:
tmpGenre = RTrim(GetID3.Genre) 'reads genre character (ie. 53)to "temp"
Kamo2.txtTmpGenre.Text = Asc(tmpGenre) 'convert chr-code to ASCII-number
i.SubItems(5) = RTrim(Kamo2.txtTmpGenre.Text)
Basically what this does is get's the genre #, Converts it to the Genre ASCII (text) name and adds it to my listview control. But in my listview instead the Genre names showing up, it shows the numbers. So I can't figure out why it's not converting. Any help appreciated.