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?

Answers were Sorted based on User's Feedback



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

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

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

Answer / sadashiva @ wipro

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

Post New Answer

More VB Script Interview Questions

Mention what are the rules to name variable in vbscript?

0 Answers  


How will you trim the spaces on the left of a string using vbscript?

1 Answers  


explain with example primitive data types of vb script.

1 Answers  


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

0 Answers  


write a vb script to generate fibonnaci numbers

1 Answers  


How are values assigned to the variables in the vbscript language?

0 Answers  


How to take whole text output from screen of Bitmap Application.

0 Answers   CitiGroup,


Which function is used in the vbscript language to convert the specified expression into a date type value?

0 Answers  


when we use filter funtiom invb script(QTP)

0 Answers   TCS,


Which operator is used to perform the comparison among 2 operands in the vbscript language?

0 Answers  


i need to sort the data using qtp script for this how i need to write a qtp script

0 Answers  


. Program for sorting of numbers in vb script?

2 Answers   Talent Sprint,


Categories