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
What contains Data Driven Framework document in qtp?
What is quicktest professional?
Hi this is chandra if any one have Navigation of LAB QTP, I want Navigation of those tools, if any one have the and know the Navigation each and every part of the QTP, plz send me my mail naruboinac@yahoo. com,naruboinas@ gmail.com
How to customize qtp?
can any body tell me how i create a simple script and apply output value on it .pls send me a step by step process
How to test background color and dynamic images during run time can you put the check point for moving objects?
How you debug your script?
banking project description for software tester
what is Property......End Property loop? how to write sript for it in QTP
How many types of parameters are available in quicktest professional (qtp)?
What is the difference between per-action and shared?
what is the difference btn risks & Therads in the Test plan documentation?
What is Distributed testing? How does UFT support it?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
how to explain a claims and insurance project?