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 are events in the vbscript language?
Mention when to use function procedures and what are its characteristics?
How will you get the natural logarithm of the given number in vbscript?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
How are comments handled in the vbscript language?
How will you compare two strings in vbscript?
How will you convert a given number to long in vbscript?
Explain the scope of the variables using dim, public, and private keywords respectively.
How will you format a number in percetage format in vbscript?
What is the main difference between function and sub-procedure?
Explain about .wsf files?
how to acces the remote mechine using vb cript(QTP)
What is the difference between a dictionary and an array?
What are class properties?
What are the uses of vb script?