VB编程 我想在第一个文本框中随意输入字母和数字,第二个文本框用来显示其中的数字,我该怎么改?
PublicClassForm1PrivateSubButton1_Click(senderAsObject,eAsEventArgs)HandlesButton1.Cl...
Public Class Form1Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.ClickDim a As String, i As Integer, b As StringFor i = 1 To Len(TextBox1.Text)b = Mid(TextBox1.Text, i, 1)If b >= 0 And b <= 9 Thena = a & bEnd IfNext iTextBox2.Text = aEnd SubEnd Class
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询