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

What is different command used in command Prompt while using QTP?

0 Answers  


I have made the recovery scenario in script. When i am exceuting the script. it stop automatically after running recovery scenario. Please tell the resaon?

2 Answers  


what about f2&f6 function keys

1 Answers  


What is obsolute path and relative path in QTP..? How to access them and what are the differences between them...??

3 Answers   Virtusa,


What are the Features & Benefits of Quick Test Pro ?

1 Answers   Crea,






When and why to use descriptive programming?

0 Answers  


How do i relate the checkbox properties with webelement when checkbox properties are changing on every login to the application

1 Answers   TCS,


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

0 Answers   TCS,


do you prepared framework,pls answer this

1 Answers  


How to supress warnings from the "Test results page"?

2 Answers  


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

0 Answers  


how do you remove object repository at runtime and load object repository and verify it

2 Answers   Thomson Reuters,


Categories