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

what is the use of QCUtil? explain with one example?

1 Answers  


How many types of procedures are available in the vbscript language?

0 Answers  


Hi, can any one tell this Actually I AM NEW TO QTP I have one qtp script in which it calls the vbs file during it's run TIME by using the ExecuteFile "absolute path" If the vbs file is executed seperately it will give the output in a msgbox In the same way if qtp script is executed the result will be displayed in w result window right? Now the question is how to get that vbs file output in the qtp result window when I run the qtp script which calls the vbsfile during it's run TIME

1 Answers  


Is VB Script Case sensitive or Case insensitive?

0 Answers  


Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10

2 Answers  






how to delete folder test3,test4 and test5 using vbscript?

2 Answers  


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..

0 Answers   Amazon,


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

0 Answers  


write a vb script to find simple interest using functions

1 Answers  


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

0 Answers   Livetek,


Which function is used to perform string comparison?

0 Answers  


How strcomp function works?

0 Answers  


Categories