Trim Function |
Microsoft.VisualBasic.Strings
Trim( str )
Any string expression
String
Removes both leading and trailing spaces from a given string
If string is Nothing , the Trim function returns Nothing .
Trim is equivalent to calling both the RTrim and LTrim functions.
In VB 6, the function's single named argument is string . In VB.NET, its single named argument is str .
LTrim Function, RTrim Function