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
How can I check if a environment variable exist or not?
how to find that tools work well with ur existing system?
Hi How to retrieve data from web element line by line?
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?
How can you pass value one action to another action?
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
Sql questions to find second max salary and how to use joins
How many types of Automation frameworks are there in UFT? Describe them.
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s.
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.
What is qtpro? What is a quick test professional?
Describe synchronization point.
what is meant by source control?
How will you handle java tree in qtp?
How do I get the QTP scripts result in xml format by using vb script function?