/ 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, "
It is meant for strings with a trailing comma such as "13, 24, 15, "
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function deleteLastComma(valStr) lastCommaPos = instrrev(valStr, ",") valStr = mid(valStr, 1, lastCommaPos - 1) deleteLastComma = valStr end function
Comments
