Get last 5 characters in a string

前端 未结 8 1610
青春惊慌失措
青春惊慌失措 2020-12-09 15:14

I want to get the last 5 digits/characters from a string. For example, from \"I will be going to school in 2011!\", I would like to get \"2011!\".<

8条回答
  •  北海茫月
    2020-12-09 16:02

    Dim a As String = Microsoft.VisualBasic.right("I will be going to school in 2011!", 5)
    MsgBox("the value is:" & a)
    

提交回复
热议问题