Published in: ASP
Function ChopLastWord(Line,Length) Dim S1, S2, I ChopLastWord = "" S1 = Left( Line, Length ) S2 = Left( Line, Length ) For I = Len(S1) to 1 step -1 if Mid(S1,I,1) = " " then S2 = Left(S1,I) I = 0 end if Next ChopLastWord = S2 End Function
You need to login to post a comment.
