How to remove the spaces in a string
Ex: "this is apple"
Answers were Sorted based on User's Feedback
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 |
Answer / kamepalli
a=split("this is apple"," ")
b=a(0)+a(1)+a(2)
msgbox b.
| Is This Answer Correct ? | 11 Yes | 6 No |
Answer / anand
x= "This is VBScript"
y = Split(x)
msgbox join(y,"")
| Is This Answer Correct ? | 7 Yes | 2 No |
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 |
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 |
Is it possible to pass optional argument to function in vb script?
What is difference between Active screen and movie screen recorder in QTP 9.2?
Explain about constants in vb script?
When to use function procedures and what are its characteristics?
Why to add checkpoint in QTP What's the purpose of checkpoints & how to add it
What is the main difference between function and sub-procedure?
How to Pass Multiple values in functions by using vb script? Function value(arg1,arg2) N1=arg1+arg2 N2=arg1-agr2 N3=arg1*agr2 N4=arg1/arg2 Value= How to pass ? End Function
What is the use of option explicit in vbscript?
what is the standards used for writing the script in QTP
how does vb script help in web page designing? explain with example.
write a vb script to rename a folder from tree4 to tree7
How are values assigned to the variables in the vbscript language?