Returns a copy of a string without leading spaces (LTrim), trailing spaces (RTrim), or both leading and trailing spaces (Trim).
Syntax –
LTrim(string)
RTrim(string)
Trim(string)
Example –
Dim MyVar MyVar = LTrim(" vbscript ") ' MyVar contains "vbscript ". MyVar = RTrim(" vbscript ") ' MyVar contains "vbscript". MyVar = Trim(" vbscript ") ' MyVar contains "vbscript".
If you want to keep track of further articles on UFT (QTP). I recommend you to subscribe by email below and have new UFT articles sent directly to your inbox.
Leave a Reply