Wednesday, June 11, 2008

STRINGS and their stuff.

GET RID OF TRAILING COMMA:
(you have built something that leaves you with a string with a comma at the end and you want it gone -- use Left minus 1 of the length of string!)

dim myString as String = "1,2,3,4,5,"
myString = Left(myString, myString.Length - 1)
RESULT: myString = "1,2,3,4,5"


more to come...

No comments: