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 take whole text output from screen of Bitmap Application.

0 Answers   CitiGroup,


how to comvert 120 into one hunderd twenty rupees only and vice varsa

0 Answers  


what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next

5 Answers   Hexaware,


Mention how to assign a date value to a variable?

0 Answers  


write a vb script create 5 folders test1 test2 test3 test4 test5

3 Answers  






What are the different types of loops available in the vbscript language?

0 Answers  


What is the purpose of on error resume next statement?

0 Answers  


Write a VB Script to count blank Lines in a notepad

2 Answers   IBM,


can any body give the code to write the function for given suppose user login with usrer id and pwd to yahoomail.after cliking "sign in"if it is valid user id the next page will display userid'message box.( Note u have to use excel sheet to retrive the userid's data)

3 Answers   Bally Technologies,


Hi, Anybody could you Please tell me How to write the script for Checking whether given number is Prime Number or not..Thanks in Advance

6 Answers   Amazon,


How will you get the exponent of the given number in vbscript?

0 Answers  


Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.

3 Answers   Amazon,


Categories