I i'm using an array to create a format for a csv file.
The first name and last name fields somethimes do not have a capital letter at the begining, how could i change this?
For i = 0 To UBound(garrResult, 2)
Response.Write(garrResult(3, i)) ' E-mail
Response.Write(",")
Response.Write( Replace(garrResult(1, i), ",", "") ) ' Last Name
Response.Write(",")
Response.Write( Replace(garrResult(2, i), ",", "") ) ' First Name
Response.Write(",")
Response.Write(garrResult(6, i))
Response.Write(",")
Response.Write(garrResult(0, i))
Response.Write(",")
Response.Write(garrResult(9, i))
Response.Write(",")
Response.Write(garrResult(10, i))
Response.Write(vbCrLf)
Next
I've been trying things, without any luck, such as:
Response.Write( UCase(Left(Replace(garrResult(2, i), ",", ""))) ) ' First Name
any suggestions? Thanks
The first name and last name fields somethimes do not have a capital letter at the begining, how could i change this?
For i = 0 To UBound(garrResult, 2)
Response.Write(garrResult(3, i)) ' E-mail
Response.Write(",")
Response.Write( Replace(garrResult(1, i), ",", "") ) ' Last Name
Response.Write(",")
Response.Write( Replace(garrResult(2, i), ",", "") ) ' First Name
Response.Write(",")
Response.Write(garrResult(6, i))
Response.Write(",")
Response.Write(garrResult(0, i))
Response.Write(",")
Response.Write(garrResult(9, i))
Response.Write(",")
Response.Write(garrResult(10, i))
Response.Write(vbCrLf)
Next
I've been trying things, without any luck, such as:
Response.Write( UCase(Left(Replace(garrResult(2, i), ",", ""))) ) ' First Name
any suggestions? Thanks