rctshine
03-20-2007, 05:14 PM
I have this code:
titlelength = String.Length(tblTag.Title);
if titlelength > 17 then
trimamount = titlelength - 14;
tblTag.Title = String.TrimRight(tblTag.Title, trimamount);
tblTag.Title = tblTag.Title.."..."
end
My goal is to get any name longer than 17 characters to fit in the given box. I'm trying to get it to rename things like, for instance, this Evanescence song:
Bring Me to Life (demo) by Evanescence
I would like to be:
Bring Me to Li...by Evanescence
My code doesn't seem to be doing it properly, and I'm not sure what I did wrong. Any ideas?
titlelength = String.Length(tblTag.Title);
if titlelength > 17 then
trimamount = titlelength - 14;
tblTag.Title = String.TrimRight(tblTag.Title, trimamount);
tblTag.Title = tblTag.Title.."..."
end
My goal is to get any name longer than 17 characters to fit in the given box. I'm trying to get it to rename things like, for instance, this Evanescence song:
Bring Me to Life (demo) by Evanescence
I would like to be:
Bring Me to Li...by Evanescence
My code doesn't seem to be doing it properly, and I'm not sure what I did wrong. Any ideas?