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

Answers were Sorted based on User's Feedback



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

Answer / shashank shekhar raj

Hai,

Try this it's much easier

x="This is apple"
x=replace("This is apple"," ","")
MsgBox x

REPLACE is function in which i replace whitespace (" ")
by no space ("")

Is This Answer Correct ?    25 Yes 1 No

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

Answer / kamepalli

a=split("this is apple"," ")
b=a(0)+a(1)+a(2)

msgbox b.

Is This Answer Correct ?    11 Yes 6 No

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

Answer / anand

x= "This is VBScript"
y = Split(x)
msgbox join(y,"")

Is This Answer Correct ?    7 Yes 2 No

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

Answer / 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

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

Answer / saradarao.v

hi Kamepalli.

i am knew to qtp.how i will get real time exp in qtp.

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More VB Script Interview Questions

How to copy from one script to another script in qtp

4 Answers  


How regexp.execute method works?

0 Answers  


write a vb script to open a text file and write into it

2 Answers  


Write a Fucntion to close all Opened browser expect desired one?

2 Answers   Ness Technologies,


where can i learn VB scripint ?

0 Answers   Satyam,


Explain about the extension .hta?

0 Answers  


In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?

1 Answers  


accept a string & display whether a is present or not

1 Answers  


I need help to write a function in vbscript to click on a link. That link looks like a tab. There are 6 tabs. When I click on 1 tab it should show as "on". when I spy the class property is on. But for the one which is not clicked the class property is blank. I have objects created in our custom object repository. Please give me some idea.

1 Answers  


Mention what is select case statement?

0 Answers  


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

0 Answers   IBM,


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

0 Answers  


Categories