1个回答
展开全部
Private Sub Command2_Click()
Dim n As Integer
If InStr(Text1.Text, " ") > 0 Then
n = Len(Left(Text1.Text, InStr(Text1.Text, " ")))
Text2.Text = Left(Text1.Text, n)
Text3.Text = Right(Text1.Text, Len(Text1.Text) - n)
End If
End Sub
Dim n As Integer
If InStr(Text1.Text, " ") > 0 Then
n = Len(Left(Text1.Text, InStr(Text1.Text, " ")))
Text2.Text = Left(Text1.Text, n)
Text3.Text = Right(Text1.Text, Len(Text1.Text) - n)
End If
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询