The UCase function takes a string as its argument, and returns a string also. This function converts the string to all UPPERCASE characters. The function might be used like this:
Private Sub cmdUpperCase_Click()
     Dim strUpperCase as String
     strUpperCase = UCase("please convert me to all uppercase")

     lblResult.Caption = strUpperCase
End Sub
The result of this statement would be that the label lblResult would have a caption of "PLEASE CONVERT ME TO ALL UPPERCASE"

Back to the Visual Basic Commands Metanode

Log in or register to write something here or to contact authors.