suppose the given string str = {"vamsikrishna%%&%*&**"}
count the no of vowels and special characters are repeated

Answer Posted / koteswar

str = "vamsikrishna%%&%*&**"
z= " "
For i = 1 to len(str)
x = mid(str, i, 1)
If Instr(1,z,x,1) Then
Else
z=z+x
msgbox z
End IF

For j = 1 to len(z)
a= mid(z,j,1)
b=split(str,a)
c=Ubound(b)
Next
msgbox c
Next

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of data tables in qtp?

581


How to use checkpoints in qtp ?

578


What is output value? How many types of output values are there in qtp?

574


What is the use of defining a newobject in the object repository "Define New TestOject". How to use this further. If we define new testobject, how can it recognizes the objects properties of any application.

1500


Explain in brief about the quicktest professional automation object model?

511






what difference between runtime object and text object and what property they have. whether they have same properties or different properties.

1705


How will you find the current time of the remote machine using QTP script?

593


What is the difference between qtp and selenium?

545


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

1718


What is the expert view?

547


What is qtpro? What is a quick test professional?

579


Can we Test Welcome Screens and Process Images with QTP

1425


WHAT IS THE DIFFERENCE BETWEEN QTP SCRIPT AND VB SCRIPT? HOW MUCH PERCENTAGE WE USE IN QTP SCRIPT REAL TIME AND HOW MUCH PERCEN OF VB SCRIPT,,,,,,,

1498


Your roles and responsibilities and daily tasks? (As automation tester)

2576


What is text/text area checkpoint?

562