Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing for upper case letters ( isuppercase() ?)

Status
Not open for further replies.

aclayborne

Programmer
May 3, 2000
49
US
I need to convert "DoeJohn" to "Doe John"
Is there a function in vb the will detect upper case letters? Or do I have to parse thru the string and verify each characters ascii value?
 
for i=1 to len(mystring)
if mid(mystring,i,1)=ucase(mystring,i,1) then
' character is capital
else
' character is lower case
end if
next i

BB
 
Thanks I changed ucase(mystring,i,1) to
ucase(mid(mystring,i,1))

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top