Capitalise the first letter of a string
Saturday 21 November 2009
If you would like to capitalise the first letter of a string, do as I have done in the below example:
-
Dim strString As String = "string text"
-
-
Textbox1.Text = UCase(Left(strString,1)) & Mid(strString,2)
The above example converts 'string text' to 'String text' and then put the converted string into a textbox called 'Textbox1'.
|
(1)
|
|
|