Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find capital letter in a string
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
Arul,

Use below mentioned code.

Code:
str= "ADlanda"
n=len(str)
msgbox n
i=0
strRes=""
While i<n
a=mid(str,i+1,1)
If  ASC(a)>=65 AND ASC(a)<=90 Then
        strRes=strRes &a
End If
i=i+1
Wend
msgbox "Your Result is: " &strRes


Might be we will be having easy code also. But I know this code only.
Reply


Messages In This Thread
Find capital letter in a string - by Arul - 12-24-2011, 09:50 PM
RE: Find capital letter in a string - by kotaramamohana - 12-26-2011, 11:25 AM
RE: Find capital letter in a string - by Arul - 12-27-2011, 11:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  String Pattern : Alternet Character Capital abhideshpande001 4 3,543 09-03-2015, 03:43 PM
Last Post: abhideshpande001
  How to have a variable that has a string comma string .. shareq1310 5 5,066 11-09-2011, 03:33 PM
Last Post: parminderdhiman84
  Find number in a string pjeigenn 9 26,837 12-03-2010, 04:26 PM
Last Post: bfakruddin
  string function to get a letter from a string ajay.r1982 3 7,568 06-30-2009, 08:58 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)