VB : UCase Function

Posted by Fluffy | 3:49 AM | , , | 0 comments »

Using UCase Function in VB


UCase function is used to convert a string into UPPER CASE, hence the name UCase. UCase can be applied in your VB programming codes as follows.


Dim myString As String '---Variable declaration

myString = "My house is on FIRE!" '--- initialize string data
myString = UCase(myString) '--- convert the string into UPPER CASE

MsgBox(myString) '--- result is now "MY HOUSE IS ON FIRE"


UCase converts all the lower case letters into upper case while upper case letters will remain as it is.


See Also LCase Function

0 comments