Skip to content
Home ยป VB 6 – StrConv()

VB 6 – StrConv()

    In this example, you will learn about the string handling funciton called StrConv(). That converts the string into following types

    • vbKatakana
    • vbHiragana
    • vbUpperCase
    • vbLowerCase
    • vbUnicode
    • vbWide
    • vbNarrow
    • vbProperCase
    • vbFromUnicode

    Example Code:

    Private Sub Command1_Click()
    
    Dim str As String
    
    str = Text1.Text
    Text2.Text = StrConv(str, vbUpperCase)
    
    End Sub

    Output: StrConv()

    Output - String Function - StrConv()
    Output – String Function – StrConv()