Trim Function


Trim Function

Class

Microsoft.VisualBasic.Strings

Syntax

     Dim result As String = Trim(str) 


str (required; String)

Any valid string expression

Description

The trim function removes both leading and trailing spaces from str.

Usage at a Glance

  • If str is Nothing, the trim function returns Nothing.

  • trim is equivalent to calling both the RTrim and LTrim functions.

Version Differences

In VB 6, the function's single named argument is string. In .NET, its single named argument is str.

See Also

LTrim Function, RTrim Function




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net