Getting char from string at specified index

后端 未结 3 1278
我寻月下人不归
我寻月下人不归 2020-12-17 10:30

As stated how to get char from string at specified index in the visual basic? I look through google and these do not work:

s(index) , s.Chars(inde

3条回答
  •  庸人自扰
    2020-12-17 11:08

    Getting one char from string at specified index

    Dim pos As Integer
    Dim outStr As String
    pos = 2 
    Dim outStr As String
    outStr = Left(Mid("abcdef", pos), 1)
    

    outStr="b"

提交回复
热议问题