Thursday, June 3, 2010

Trim a given string

Dim MyString, MyReturn
MyString = " VBScript is fun! "
MyReturn = Trim(MyString)
MsgBox MyReturn
MyReturn2 = LTrim(MyString)
MsgBox MyReturn2
MyReturn1 = RTrim(MyString)

No comments: