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 take whole text output from screen of Bitmap Application.
how to comvert 120 into one hunderd twenty rupees only and vice varsa
what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next
Mention how to assign a date value to a variable?
write a vb script create 5 folders test1 test2 test3 test4 test5
What are the different types of loops available in the vbscript language?
What is the purpose of on error resume next statement?
Write a VB Script to count blank Lines in a notepad
can any body give the code to write the function for given suppose user login with usrer id and pwd to yahoomail.after cliking "sign in"if it is valid user id the next page will display userid'message box.( Note u have to use excel sheet to retrive the userid's data)
Hi, Anybody could you Please tell me How to write the script for Checking whether given number is Prime Number or not..Thanks in Advance
How will you get the exponent of the given number in vbscript?
Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.