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

Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..

2011


How to Import data from a file (file is on the desktop) to the data table

1571


What are class variables?

606


When are redim statement and preserve keyword used in the vbscript language?

578


How are arrays declared in the vbscript language?

527






how to operate webobjects in a webpage using getobject function and then using generic methods?

2534


How should i Create Email invite with server-side Coding?

1592


In what way program "hello world" you can write in vbscript?

626


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

559


What are the differences between sub procedures and function procedures?

511


Explain about operator precedence in vb script?

563


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3026


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1430


How to open a file. What is the perpose of true and false mode there?

595


How will you get a random number between 0 and 1 in vbscript?

709