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 |
Which event is triggered when mouse focus comes out of an element in the vbscript language?
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting
what is the differance between BYVAL,BYREF?
Which operator is used to perform the comparison among 2 operands in the vbscript language?
How to write functional test cases for send button in gmail.
how to write validation function for date in vb script
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
How can I access an object in another frame?
How will you get a string with the specified character the specified number of times in vbscript?
When importing an excel file that has several columns each with different number of rows into QTP's Global datatable, how can you count the number of rows in a particular column?
3 Answers Logica CMG, McGraw Hill,
who will create the object?
hai all.iam chandu..please let me know how to test a link in QTP when it is changing at run time..and what property we should take while we r using descriptive programming for a link..