We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,254 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
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

2
Contributors
1
Reply
8 Hours
Discussion Span
6 Years Ago
Last Updated
2
Views
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

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.5738 seconds using 2.75MB