|
Make a string upper case or lower case -- helmet2 --
How to make a string upper case or lowe case in visual basic .NET? I have write a code and its work : Dim myText As String Dim uCaseText As String Dim lCaseText As String uCaseText = uCase(myText) luCaseText = lCase(myText) But I think using uCase and lCase function is not .NET style, its a classic Visual Basic style. Any one have idea to convert string using .NET style? |
|
-- legion --
Your above code is working..what else? I think its ok use those builtin upper and lower case functions. If not why Microsfot still includes thos functions. |
|
Convert String Using the String Class -- doremi --
If you want use .NET class you can use string class. Your code should like this : Dim myText As String Dim uCaseText As String Dim lCaseText As String myText = "Hello World" uCaseText = myText.ToUpper() luCaseText = myText.ToLower() I hope this will help you.. |
|
-- helmet2 --
Great thanks to helmet2. @legion : I think we should think object oriented now.. using classic visual basic style functions we will out of .NET OOP concept |