954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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
 
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
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You