a;;b;c;;;d in this string output is abcd will come how can we
do that in vbscript in QTP testing?
Answers were Sorted based on User's Feedback
Answer / eswar
s = "a;;b;c;;;d"
For i=1 to len(s)
x = Mid(s,i,1)
If x <> ";" Then
y=y&x
End If
Next
MsgBox y
| Is This Answer Correct ? | 2 Yes | 0 No |
str="a;;b;c;;;d"
a=len(str)
for i=1 to a
b=replace(str,";","")
next
msgbox b
| Is This Answer Correct ? | 1 Yes | 1 No |
write a vb script to generate fibonnaci numbers
How will you get a random number between 0 and 1 in vbscript?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
Write a program to resize an array of 5 elements to 4 elements and display all the elements.
How will you get the octal value of the given number in vbscript?
How are values assigned to the variables in the vbscript language?
What is dictionary object in vbscript? Explain?
write a vb script to display the reverse of vbs
How to open browser in vb script?
How to write functional test cases for send button in gmail.
Explain what is loose binding? Why is it not a good practice to use it?
How to capture a runtime error in vbscript?