what is L-trim function will do?

Answers were Sorted based on User's Feedback



what is L-trim function will do?..

Answer / nani

Returns a copy of a string without leading spaces (LTrim),
trailing spaces (RTrim), or both leading and trailing
spaces (Trim).

LTrim(string)
RTrim(string)
Trim(string)
The string argument is any valid string expression. If
string contains Null, Null is returned.

Remarks
The following example uses the LTrim, RTrim, and Trim
functions to trim leading spaces, trailing spaces, and both
leading and trailing spaces, respectively:

Dim MyVar
MyVar = LTrim(" vbscript ") ' MyVar
contains "vbscript ".
MyVar = RTrim(" vbscript ") ' MyVar contains "
vbscript".
MyVar = Trim(" vbscript ") ' MyVar contains "vbscript".

Is This Answer Correct ?    6 Yes 1 No

what is L-trim function will do?..

Answer / rajendra medepalle

In Shore will remove Leading edge spaces..

Ex:=

Dim StrComp

StrComp=LTrim(" TATA CON SER")

Msgbox StrComp

'StrComp Contain "TATA CON SER"

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

How to test login page by using QTP

6 Answers  


In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain

5 Answers   Polaris,


can u tell me website address of VBscript with examples.

2 Answers  


what is standalone database

1 Answers   Wipro,


What kind of errors can b handled in QTP in real time scenario?

2 Answers   AZTEC,






i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer

0 Answers   TCS,


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

0 Answers  


How to Close all browsers in reverse order.

3 Answers   Marlabs,


Use of Multiple Actions in QTP?

3 Answers  


How to launch application under test through VBscript without using systemutil.run or invokeapplication?

3 Answers  


Plz Explain AUTOMATION REFERENCE MODEL?

0 Answers  


How to use conditional loops in qtp ?

0 Answers  


Categories