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 |
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.
Which operator is used to concatenate the 2 values in the vbscript language?
Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript
How to open a file. What is the perpose of true and false mode there?
Which constant is used for print and display functions and works as same as pressing enter key?
What are the 2 ways in which a variable can be declared in the vbscript language?
Which is the default Data types in VBScript?
Which keyword is used to declare a variable in the vbscript language?
Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?
How to create a function in vbscript?
What is sql loader? Explain the files used by sql loader to load file?