I need to find out to make the first letter of a string uppercase while leaving the rest as is. This is necessary for customer names, vendor names, etc. Can anyone help?
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim str As String = "david"
Dim l As String = UCase(str.Substring(0, 1))
MsgBox(l + str.Substring(1))
End Sub
End Class
-David
2006, 2007 & 2008 Microsoft Most Valuable Professional (VB)
2006 Dell Certified System Professional (CSP)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.