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 |
Mention what are the rules to name variable in vbscript?
How will you trim the spaces on the left of a string using vbscript?
explain with example primitive data types of vb script.
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository
write a vb script to generate fibonnaci numbers
How are values assigned to the variables in the vbscript language?
How to take whole text output from screen of Bitmap Application.
Which function is used in the vbscript language to convert the specified expression into a date type value?
when we use filter funtiom invb script(QTP)
Which operator is used to perform the comparison among 2 operands in the vbscript language?
i need to sort the data using qtp script for this how i need to write a qtp script
. Program for sorting of numbers in vb script?