How to remove the spaces in a string Ex: "Welcome to
QTPWorld" ?
Answer Posted / vasudha
Dim str
str="welcome to qtp"
arr=split(str," ")
For i=0 to Ubound(arr)
abc=abc&arr(i)
Next
print abc
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
what is diff between static and dynaic arrys?
How to Convert Hex color code to color name in VB Script?
Illustrate briefly about the different types of statement
How will you reverse a string in vbscript?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
What is the purpose of the err object in the vbscript language?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
Mention what are the rules to name variable in vbscript?
How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz
What is the use of option explicit in vbscript?
Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
How can the spaces from the string be removed?
Is VB Script Case sensitive or Case insensitive?