Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the support of asp for vb script functionality?

885


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2782


Explain How do you create a recordset object in vbscript?

959


who will create the object?

2128


Which in-built function related to an array joins substrings into one string in the vbscript language?

905


Which constant is used for print and display functions and works as same as pressing enter key?

943


how to operate webobjects in a webpage using getobject function and then using generic methods?

3022


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

948


what is the standards used for writing the script in QTP

2270


Write a code to print numbers from 5 to 0?

1081


What are the rules to name variable in vbscript?

1015


Which event is triggered when mouse focus comes out of an element in the vbscript language?

905


Explain about tristate constants?

949


What is Procedure or Subroutine in VB Script?

1066


How to capture a runtime error in vbscript?

1085