How to remove the spaces in a string Ex: "Welcome to
QTPWorld" ?
Answer Posted / sowjanya
Msgbox Replace("wellcome to qtp world"," ","")
OR
str= "Wellcome to qtp world"
arr=Split(str," ")
for i=0 to Ubound(arr)
abc=abc&arr(i)
next
msgbox abc
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Mention characteristics of sub procedures?
What is the output of a + b in vbscript if a = 5 and b = 10?
Illustrate briefly about the different types of statement
Mention how to assign a date value to a variable?
Mention what is the technology used by vb script?
after medical test,when will be the police verification
What is the difference between vb debugger and the script debugger?
Which data type/types are supported by vbscript language and what are their specialties?
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.
when we use filter funtiom invb script(QTP)
Explain about tristate constants?
How to capture a runtime error in vbscript?
Mention what is vbscript?
How will you get the smallest subscript of an array in vbscript?
Can automation testing find ssame no. of bugs what we can find by manual testing?