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 |
Hi I am having one folder with set of text files now i want to read and write that text files data into QTP. Any help plsss.
How to open browser in vb script?
Is vbscript a case-sensitive or case-insensitive?
Which operator can be used to check if two numbers are equal or not in vbscript?
Mention what is the difference between vbscript and vba?
I'm new to QTP, i facing a a problem in the script says"Object not found", "Browser("").page("").frame(Name:=fminfo).webtable(). the issue is, QTp is not able to identify the web table in run time.becuase in that fram"fminfo" there are "n"table and the table do not have the names,Html id. 1) i need to count the number webtables available on that page. 2)need to identify the webtable cell values. 3)How Loop the once i get the count and retrive the cell data of each webtable? Can anyone help on this, plz.. Thanks, Suresh
Which is the default Data types in VBScript?
How will you check that a variable is an array in vbscript?
Write a program to print all lines that contains a word either “testing” or “qtp”
Is vbscript language a case-sensitive language and what does it mean?
How are arrays declared in the vbscript language?
What is the difference between do until loop and do while loop?