WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

String Manipulation

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

UDF to Trim Trailing Spaces

Keywords: 	 trim trailing spaces

#DefineFunction StrTrimRight(s)
S2 = StrTrim(S)
X = StrIndex(S,S2,1,@FWDSCAN)
return StrSub(S,1,X+StrLen(S2)-1)
#EndFunction 

Article ID:   W15764
File Created: 2003:05:13:11:29:58
Last Updated: 2003:05:13:11:29:58