944,181 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 4944
  • ASP RSS
Jun 28th, 2006
0

How to count Uppercase Letter from a String

Expand Post »
Hi all,

How to count Uppercase Letter from a String.

Please help

Regards,
Sandeep
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
sandeep.kharat is offline Offline
3 posts
since Jun 2006
Jun 28th, 2006
0

Re: How to count Uppercase Letter from a String

ASP Syntax (Toggle Plain Text)
  1. Function NumUpperCase(x)
  2. a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  3. count = 0
  4.  
  5. for c = 1 to Len(x)
  6. if InStr(a,Mid (x,c,1)) > 0 then count = count+1
  7. next
  8.  
  9. NumUpperCase = count
  10. End Function
Reputation Points: 14
Solved Threads: 19
Posting Pro in Training
campkev is offline Offline
484 posts
since Jul 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: shopping cart
Next Thread in ASP Forum Timeline: Passing Value to other page





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC