VB期末考试题啊,大虾帮忙!

2024-11-14 04:10:17
推荐回答(1个)
回答1:

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Dim strArr() As String
strArr = Split(TextBox1.Text)
TextBox2.Text = strArr(0)
TextBox3.Text = strArr(1)
TextBox4.Text = Replace(strArr(2), "0", "")
TextBox5.Text = strArr(3)
TextBox6.Text = strArr(4)

End Sub
End Class
这样就可以了,我验证过了