/ Published in: ASP
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, "
Expand |
Embed | Plain Text
function deleteLastComma(valStr) lastCommaPos = instrrev(valStr, ",") valStr = mid(valStr, 1, lastCommaPos - 1) deleteLastComma = valStr end function
Comments
Subscribe to comments
You need to login to post a comment.

I've posted the PHP equivalent to this of mine @ http://snipplr.com/view/13885/delete-last-comma-in-a-string/