what is L-trim function will do?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I check if a environment variable exist or not?

532


how to find that tools work well with ur existing system?

1348


Hi How to retrieve data from web element line by line?

1569


An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

648


How can you pass value one action to another action?

546






i'm using the qtp to test to vb appliction,i wanted to get the new application's title.i didn't want to use the winAPI to get it ,i 'd like to know whether a QTP function can do it. Eg: SystemUtil.Run "C:\Program Files\.....","","","" 'run an application, and misure the application is activating,then how to get the hwn wihtout using windowns api

1486


Sql questions to find second max salary and how to use joins

955


How many types of Automation frameworks are there in UFT? Describe them.

548


How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.

516


I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format, if possible, kinldy mail PDF file to my mail-ID: ramakrishna908@gmail.com Regards, krishna.

1458


What is qtpro? What is a quick test professional?

577


Describe synchronization point.

569


what is meant by source control?

1685


How will you handle java tree in qtp?

619


How do I get the QTP scripts result in xml format by using vb script function?

1776