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 |
How to copy from one script to another script in qtp
How regexp.execute method works?
write a vb script to open a text file and write into it
Write a Fucntion to close all Opened browser expect desired one?
where can i learn VB scripint ?
Explain about the extension .hta?
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?
accept a string & display whether a is present or not
I need help to write a function in vbscript to click on a link. That link looks like a tab. There are 6 tabs. When I click on 1 tab it should show as "on". when I spy the class property is on. But for the one which is not clicked the class property is blank. I have objects created in our custom object repository. Please give me some idea.
Mention what is select case statement?
How to Import data from a file (file is on the desktop) to the data table
A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.