John,
In addition to Fergus's comments.
String.ToUpper does not accept a string as a parameter. It operators on the
current instance of the string. So if you want the upper case the first
character of "s" you would use:
s = s.SubString(0, 1).ToUpper()
As Fergus pointed out the index is zero based, so to get the first character
of "s" you pass 0, then you upper case the result of the sub string.
Of course you could have upper cased the entire string then took the sub
string of that.
s = s.ToUpper().SubString(0, 1)
Hope this helps
Jay
"John A Grandy" <jo*********@yahoo.com> wrote in message
news:eq*************@TK2MSFTNGP11.phx.gbl...
what is wrong with this ? (assuming s is > 1 char long)
Dim s As String
s = s.ToUpper(s.Substring(1, 1)) & s.ToLower(s.Substring(2))