Start New Discussion Reply to this Discussion How to count Uppercase Letter from a String
Hi all,
How to count Uppercase Letter from a String.
Please help
Regards,
Sandeep
sandeep.kharat
Newbie Poster
3 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Function NumUpperCase(x)
a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
count = 0
for c = 1 to Len(x)
if InStr(a,Mid (x,c,1)) > 0 then count = count+1
next
NumUpperCase = count
End Function
campkev
Posting Pro in Training
484 posts since Jul 2005
Reputation Points: 14
Solved Threads: 19
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.5738 seconds
using 2.75MB