Navigation bar
  Start Previous page
 265 of 283 
Next page End 260 261 262 263 264 265 266 267 268 269 270  

256
Trim
Type
Function returning String
Invocation
Trim(str) 
Parameter
Method
Type
Description
str
ByVal
String
The string from which blanks will be stripped.
Discussion
This function returns a new string containing the same characters as the passed string except that
leading and trailing spaces will be removed.  If the string consists solely of spaces, the resulting string will
be zero length.
Example
Dim s as String, s1 as String
s = "  Hello, world!  "
s2 = Trim(s)
' the result will be "Hello, world!"
See Also
Previous page Top Next page