Wednesday, August 11, 2010

Visual Basic String Statement : LTrim

Purpose : LTrim removes leading spaces from a string or byte array.

Syntax :
LTrim ( string )

string : The string being trimmed

ds!Name = LTrim ( txtName.Text )

LTrim removes all leading spaces form a string or byte array. LTrim generally is used with data entered on a form to make sure no extraneous spaces are stored with the data.

No comments:

Post a Comment