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 Pass Multiple values in functions by using vb script? Function value(arg1,arg2) N1=arg1+arg2 N2=arg1-agr2 N3=arg1*agr2 N4=arg1/arg2 Value= How to pass ? End Function
. Program for sorting of numbers in vb script?
When does ‘on click of button’ event gets triggered in the vbscript language?
int a=4857 i need output as 7584.without using any inbuild function?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
what is the use of QCUtil? explain with one example?
What is the purpose of folders object of scripting.filesystemobject class in vbscript?
How do you create a recordset object in VBScript?
Write VB script to convert from feet to inches(hint 1feet=12 inches)
Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript
How will you format a number in percetage format in vbscript?
how to acces the remote mechine using vb cript(QTP)