How to remove the spaces in a string
Ex: "this is apple"

Answer Posted / eswar

s = "this is apple"
x = Split(s," ")
For each i in x
y=y&i
Next
MsgBox y

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

503


How will you convert a given number to long in vbscript?

490


Is VB Script Case sensitive or Case insensitive?

631


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

794


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.

1846






How to open browser in vb script?

582


What are string functions in vbscript?

656


Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble

2028


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

1698


Explain about the asc function?

601


How will you get the last occurrence of one string within another string using vbscript?

683


Which command is used for writing text on a page?

574


What are class variables?

614


In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?

2020


Mention how to assign a date value to a variable?

585