How to remove the spaces in a string Ex: "Welcome to
QTPWorld" ?

Answer Posted / mithuna reddy

Dim str,arrsplit,arrjoin

str = "Welcome to QTP World"
arrsplit = Split(str," ")
arrjoin = Join(arrsplit,"")
MsgBox arrjoin

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

581


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1519


what is diff between static and dynaic arrys?

1686


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

1833


What is the technology used by vb script?

626






how to increase the values in text box in a given text box increament by two values by clicking on button

1740


Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?

2682


Explain about operator precedence in vb script?

694


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.

1955


What are the different types of operators and their order of precedence?

662


Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.

1524


Mention what is the technology used by vb script?

598


Mention how to assign a date value to a variable?

683


Explain How do you create a recordset object in vbscript?

648


Explain vbscript in detail?

706