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 |
How to open browser in vb script?
Can any 1 modify the code whr in want to add\rename a excel sheet in qtp?
What is the main difference between function and sub-procedure?
What is a difference between scripting language and programming language?
In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?
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.
What are the data types supported by vbscript?
what is the difference between modular and data and keyword driven framework
how to write basic programs in VB Script like addition, multiplication?
Write VB script to convert from feet to inches(hint 1feet=12 inches)
Difference between Do while loop and while wend loop
write a vb script create 5 folders test1 test2 test3 test4 test5