Use the LTrim, RTrim, and Trim to trim white-space from a string.
str1 = " Advanced QTP "
Print LTrim( str1 ) ' prints "Advanced QTP "
Print RTrim( str1 ) ' prints " AdvancedQTP"
Print Trim( str1 ) ' prints "AdvancedQTP"
Posted in VBScript

daniva




Recent Comments