str="ramanareddy12345@gmail.com"to count alphabets,numarics and special charcters pls any one knows send to answer

Answer Posted / usha

str="ramanareddy12345@gmail.com"
numbers=0
alphabets=0
specialchar=0


for i = 1 to len(str)

b = mid(str,i,1)

if isnumeric(b) then

numbers=numbers+1

ElseIf (asc(b)>=97)and (asc(b)<=122) or asc(i)>=65 and asc(i)<=90 then

alphabets=alphabets+1

else

specialchar=specialchar+1

End if

next

msgbox numbers
msgbox alphabets
msgbox specialchar

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

An action has both shared and local or associated to it and both have the same object in them. In the test which one will be considered?

648


How you can decide which type of object repository you have to use?

698


What is file database?

1686


What is Test Fusion Report in QTP?

614


What is the new version of qtp which is recently released in the market?

637






how to explain a claims and insurance project?

1746


How to use parameterization in qtp?

616


What does it mean when a check point is in red color? What do you do?

561


Give me some real time point of way where exactly we can conduct audits?

1497


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1498


what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?

1369


What is the difference in testing a client-server application and a web application?

579


Define Environment Variable in UFT and its uses?

601


Please Don't mind .i want in detail the real time process i.e in each document what it contains.

1430


In qtp, how you can exit for loop?

519