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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of the formatdatetime function in the vbscript language?

545


wht must be the interview question on corinthian information technology solutions incorporated.

2179


Mention what are the rules to name variable in vbscript?

530


How will you get a combined string from array of string in vbscript?

541


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

1862






i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1791


Which operator can be used to check if two numbers are equal or not in vbscript?

640


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1430


What is the difference between function and procedure?

562


Explain about the functionality of vb script?

564


How will you convert a string to upper case string using vbscript?

546


How to write VB script for login module?

2668


How will you format a number in percetage format in vbscript?

585


What are the disadvantages of vbscript?

644


Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks

1713