Does 1 character = 1 byte? I'm confusing myself here. I'm working with an ID3 v1 tag. The ID3 info is stored in the last 128 bytes. An example of what I'm doing is below. Basically what I'm asking is if 30 bytes are assigned to the songname does that mean the songname can only be 30 characters? I need to know this so I can set the Maxlength of my textboxes. Anyone know a more efficient way to divide this up? You pretty much have to have 3 bytes for the "TAG", 4bytes for the Year, and 2 bytes for the track. So maybe I just answer my own question!Anyway, would it be best to take bytes away from the comment and add them to the artist & title? Maybe reduce the comments to 10 bytes. Anyone know if there is a standard for this? Thanks
VB Code:
Dim id3Tag As String * 3 Dim Songname As String * 30 Dim Artist As String * 30 Dim Album As String * 30 Dim Year As String * 4 Dim Comment As String * 28 Dim Track As String * 2 Dim Genre As String * 1




Anyway, would it be best to take bytes away from the comment and add them to the artist & title? Maybe reduce the comments to 10 bytes. Anyone know if there is a standard for this? Thanks
Reply With Quote