a;;b;c;;;d in this string output is abcd will come how can we
do that in vbscript in QTP testing?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about scrrun.dll?

530


Mention what is the difference between vbscript and vba?

516


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

1614


Why is the use of exit do or exit for statements within loops discouraged?

568


What is the use of the recordset object and which statement is used to create such an object?

527






Explain the tristate constants in vbscript?

561


Plzzzzzzz can any one tell me which is the best institute in hyderabad for learing VBScript. plz do answer guys its urgent plzzzzzzz. thanks in advance.

1723


How will you check that a variable is an array in vbscript?

542


What are the data types supported by vbscript?

578


How to open browser in vb script?

582


How to Enter Values on the Command promt using VB script

1530


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

2901


How can the spaces from the string be removed?

591


how to check whether link is disabled in QTP??

5629


How will you get a subset of a array in vbscript?

587