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 |
can anybody tell vb script code for alphanumeric and special character .which is used in qtp the name text field.
write a vb script to display the number is odd or even and whether it is divisible by 9 or not
int a=4857 i need output as 7584.without using any inbuild function?
write generic functions for webapplication?like generic function for webedit generic function for webbutton generic function for links
why variable name should not exceed 255 characters?
how to retrieve native property value in runtime?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
I have string like hp company.print tis like company hp.write a program in vbscripting
write a vb script to rename a folder from tree4 to tree7
Explain about tristate constants?
How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.
how to write validation function for date in vb script