怎么样用VB6.0 取出自左边开始的第几个字符?

发布时间:2024-11-07 22:45 发布:上海旅游网

问题描述:

如有一字符是a="i am a student",采用一指令取a的自左边第八个字符起的的所有字符,使得b="student"

问题解答:

a = "i am a student"
b = Mid(a, 8)

Option Explicit
Dim a As String

Private Sub Form_Load()
a = "i am a student"
Text1 = Mid(a, 8, Len(a) - 8 + 1)
End Sub

楼上正解...

恩,楼上的没错!

热点新闻