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
suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question
How we can import data from database?
How to connect to a database?
Is it possible to refer the same object for referring more than one object that are of different class using the descriptive programming approach? Suppose my code is 'To create the object named as obj Set obj=Description.Create() 'To define the values obj("title").value="IE" obj("type").value="text" obj("html tag").value="INPUT" 'To set the value Browser("IE").Page("Yahoo").WebEdit(obj).Set "xyz" Can I refer the "obj" object for the three objects like Browser,page and webedit objects? If so how?
Hi frnds, does anybody know if there is anything called "thin point" or something in qtp? thanks in advance.
what is the advantages and disadvantages of using functions instead of re usable actions
Where we use data driver in qtp?
How are cgi programs, applets, javascripts, ActiveX components, etc. to be maintained, tracked, controlled, and tested?
How can you handle exceptions in qtp?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
What is clean sweep?
what is the hierarchy to use properties in descriptive programming
i have doubt suppose iam purly working in QTP, when i will work on sql and performence testing? pls any one clarify doubt?
If created one virtual object? Next time I changed the window position will it work?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti