How to remove the spaces in a string Ex: "Welcome to
QTPWorld" ?
Answer Posted / vasudha
Dim str
str="welcome to qtp"
arr=split(str," ")
For i=0 to Ubound(arr)
abc=abc&arr(i)
Next
print abc
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
Explain a few date functions in vbscript
Like OPTION EXPLICIT statement what are the other statements used in vbscript and their usage. Please post me all the statements please.
How will you get a combined string from array of string in vbscript?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
What are the advantages of vbscript?
What is select case statement?
how to check whether link is disabled in QTP??
what is resorceallocation
what is the features of visual basic?
What if you do not specify anything when you call a procedure?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
Explain about the support of asp for vb script functionality?
Could Anybody Please tell me What is the script for Find 3rd Largest element in the Array without using a SORT function int Find(int arr[], int size); Thanks in Advance..
Explain the adodb.stream class?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.