Return to Snippet

Revision: 11583
at February 10, 2009 12:08 by jlvallelonga


Initial Code
function deleteLastComma(valStr)
	lastCommaPos = instrrev(valStr, ",")
	valStr = mid(valStr, 1, lastCommaPos - 1)
	deleteLastComma = valStr
end function

Initial URL

                                

Initial Description
This function takes a string and deletes the last comma in it.
It is meant for strings with a trailing comma such as "13, 24, 15, "

Initial Title
Delete Last Comma

Initial Tags
csv

Initial Language
ASP