[Solved] I need to convert this function from C# to VB.net – Convert INT to multi character string [closed]


If you’re being LAZY and i mean lazy you can use http://converter.telerik.com/

Here’s the output for you:

Public Shared Function getColumnNameFromIndex(column As Integer) As String 
    column -= 1
    Dim col As String = Chr(Asc("A") + (column Mod 26))
    While column >= 26
        column = (column \ 26) - 1
        col = Chr(Asc("A") + (column Mod 26)) & col
    End While
    Return col
End Function

5

solved I need to convert this function from C# to VB.net – Convert INT to multi character string [closed]