看着这么多分,挣一点^_^
Private Sub Command1_Click()
Dim str As String
Dim ch As String
Dim i As Integer
Dim isnum As Boolean
isnum = False
str = Text1.Text
For i = 1 To Len(str)
ch = Mid(Text1.Text, i, 1)
If (ch >= "0" And ch <= "9") Then
str = str + ch
isnum = True
Else
If isnum Then Print str
str = ""
isnum = False
End If
Next i
End Sub
'添加一个TEXT控件和一个command控件
',很长时间没有看过VB,可能有部分语法错误
private sub command_click()
a=len(text.text)
for i=1 to a
if str("1,2,3,4,5,6,7,8,9,0",a,i)<>0 then flag=flag+1
next i
end sub