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
How to pass argument by reference to a function in vbscript?
What is the purpose of regexp object in vbscript?
Explain the constants in vbscript?
hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?
What is dictionary object in vbscript? Explain?
Which loop is used in case of arrays in the vbscript language?
How strcomp function works?
Difference between dim,public and private variables in vb script?
How will you release the memory acquired by an array variable in vbscript?
Explain a few date functions in vbscript
How are arrays declared in the vbscript language?
Is vbscript a case-sensitive or case-insensitive?
how to set one column as primary key in QTP and fetch values accordingly
how to automatically update the sql server2005 database records when insert in vb6?
Which object provide information about a single runtime error in a vbscript?