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
Can we create user defined functions in qtp?
What are table and db checkpoints?
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
Which functionalities of QTP used in banking project?
How to run an integrated test scenario using Multiple Actions? How to use the QTP Step Generator?
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
How to handle Java tree in QTP?
What are the methods used in UFT to handle exceptions or run-time errors?
Can we run multiple QTP scripts one after the other without manual intervention? How?
How to check which add-ins are associated with a test in qtp?
How to open a new test using quicktest professional (qtp)?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
I have developed and executed a script successfully, and saved the same to QC. When I tried to execute the script from QC, the script is not executing. What are the possible reasons?”
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
What is the difference between keyword view and expert view?