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 |
What methods are used to create text files and open text files in the vbscript language?
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).
How will you get a string with the specified character the specified number of times in vbscript?
When does ‘on click of button’ event gets triggered in the vbscript language?
Mention how to access array data?
write a Vb script to find a whther a selected drive exits.
How will you format a number in percetage format in vbscript?
Why is the use of exit do or exit for statements within loops discouraged?
How will you convert a string to upper case string using vbscript?
If anyone knows abt Test Complete material, Pls let me Know. if u have any material or any documents..... Pls mail me on this mail Id...... This is very Urgent Requirment..... for my Project.....
Mention the environments where vbscript could be run?