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

can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

1625


How to delete an object from the object repository?

595


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2186


What are the types of properties that quick test learns while recording?

540


What are the properties you would use for identifying a browser and page when using descriptive programming?

634






I need to pull the data from the page which in row, column vice into excel sheet, how can it be done using QTP? eg: Name Dept xyz gdty i need the same data to be exported in excel sheet.

1727


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

1527


How will you check a web application for broken links using qtp?

554


What is the Difference between copy to action and call to action?

590


How to connect the remote desktop using QTP 9.2 explain the method or procedure?

2802


Can you list some technologies that support qtp?

553


hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.

1841


how to explain a claims and insurance project?

1751


What is the extension of qtp local repository?

576


How to build scripts that access data from external sources?

1611