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


Please Help Members By Posting Answers For Below Questions

Which command is used for writing text on a page?

576


Can automation testing find ssame no. of bugs what we can find by manual testing?

1468


How will you release the memory acquired by an array variable in vbscript?

744


Can anyone send me a vb script function for verifying the functionality of active links on a web page

1600


How are values assigned to the variables in the vbscript language?

573






how to increasing the numbers in a given text box please write a vb script

1702


How will you format a number in percetage format in vbscript?

589


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1847


Mention how to access array data?

513


Both Static and dynamic arrays are handled by VB script. Is it true?

608


Explain about operator precedence in vb script?

575


What is event handling in vbscript?

599


How many types of procedures are available in the vbscript language?

532


What is the technology used by vb script?

542


Explain the arrays in vb script?

586