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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy String Manipulation Question

Status
Not open for further replies.

sandraX

Programmer
Apr 18, 2001
2
US
I need a function that returns a string to the page with the first letter capitalized when it is fed an all-lowercase string. Anyone know how to do this?
 
Look at STRCONV function
strCap = strConv(strIn,3) ' 3=vbProper capitalize 1st leter of every word
OR
Code:
Function Capital1st(strIn as string) as string
    If Len(strIN) > 0 then
        Captial1st = Ucase(Left(strIn,1)) & Mid(strIn,2)
    else
        Capital1st = strIn
    end if
End function
 
Thanks a bunch, John! That is exactly what I needed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top