Convert numeric characters to alphabetic characters

前端 未结 5 1348
日久生厌
日久生厌 2021-01-02 16:12

I am trying to get I/O as follows:

Input : 123490
Output : BCDEJA

Logic is simple:

if
strarr(i)=0,1,2

5条回答
  •  孤街浪徒
    2021-01-02 16:50

    This should get you started:

    Public Function ConvertValue(iInput As Integer) As String
        ConvertValue = Chr(65 + iInput)
    End Function
    

    Please note that value of '65'stands for capital A, lowercase letters start from '97

提交回复
热议问题