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 |
write a vb script to rename a folder from tree4 to tree7
What are events in the vbscript language?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
Find Out Length of an array without using Ubound?
what do you mean .ota mobile format
What variable can you use to share info across the whole application for one user?
How can you test font size, type and color using QTP tool?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
what is used of Property........End Property loop ? how to write the script for it?
How to return only alpha bate string from an string str = "bibhu@#$%&das&*)(SUndar"
what is visual basic?
how to write code: to check whether the window of an Application Under Test exist or not . plz give with example