vb程序填空 20
求大神来啊OptionExplicitOptionBase1'筛选按钮代码PrivateSubCommand1_Click()DimsAsString,kAsIntege...
求大神来啊
Option Explicit
Option Base 1
'筛选按钮代码
Private Sub Command1_Click()
Dim s As String, k As Integer, c() As String
Dim p As String, i As Integer
s= Text1
k= 1
For i = 1 To Len(s)
If Mid(s, i, 1) >= "0" And Mid(s, i, 1) <= "9"Then
'**********FILL**********
______________________________
ElseIf Mid(s, i + 1, 1) >= "0" And Mid(s, i + 1, 1) <="9" And i <> 1 Then
If p <> "" Then
'**********FILL**********
______________________________
c(k) = p
'**********FILL**********
______________________________
p = ""
End If
End If
Next i
ReDim Preserve c(k)
c(k) = p
For i = 1 To k
'**********FILL**********
______________________________
Next i
End Sub
Private Sub Command2_Click()
Text1.Text = ""
List1.Clear
End Sub
Private Sub Command3_Click()
End
End Sub 展开
Option Explicit
Option Base 1
'筛选按钮代码
Private Sub Command1_Click()
Dim s As String, k As Integer, c() As String
Dim p As String, i As Integer
s= Text1
k= 1
For i = 1 To Len(s)
If Mid(s, i, 1) >= "0" And Mid(s, i, 1) <= "9"Then
'**********FILL**********
______________________________
ElseIf Mid(s, i + 1, 1) >= "0" And Mid(s, i + 1, 1) <="9" And i <> 1 Then
If p <> "" Then
'**********FILL**********
______________________________
c(k) = p
'**********FILL**********
______________________________
p = ""
End If
End If
Next i
ReDim Preserve c(k)
c(k) = p
For i = 1 To k
'**********FILL**********
______________________________
Next i
End Sub
Private Sub Command2_Click()
Text1.Text = ""
List1.Clear
End Sub
Private Sub Command3_Click()
End
End Sub 展开
1个回答
展开全部
'筛选按钮代码
Private Sub Command1_Click()
Dim s As String, k As Integer, c() As String
Dim p As String, i As Integer
s= Text1
k= 1
For i = 1 To Len(s)
If Mid(s, i, 1) >= "0" And Mid(s, i, 1) <= "9"Then
'**********FILL**********
____p=p+mid(s,i,1)__________________________
ElseIf Mid(s, i + 1, 1) >= "0" And Mid(s, i + 1, 1) <="9" And i <> 1 Then
If p <> "" Then
'**********FILL**********
______p=p+mid(s,i,1)________________________
c(k) = p
'**********FILL**********
_______k=k+1_______________________
p = ""
End If
End If
Next i
ReDim Preserve c(k)
c(k) = p
For i = 1 To k
'**********FILL**********
_____text1=text1+chr(13)+c(k)_________________________
Next i
End Sub
Private Sub Command1_Click()
Dim s As String, k As Integer, c() As String
Dim p As String, i As Integer
s= Text1
k= 1
For i = 1 To Len(s)
If Mid(s, i, 1) >= "0" And Mid(s, i, 1) <= "9"Then
'**********FILL**********
____p=p+mid(s,i,1)__________________________
ElseIf Mid(s, i + 1, 1) >= "0" And Mid(s, i + 1, 1) <="9" And i <> 1 Then
If p <> "" Then
'**********FILL**********
______p=p+mid(s,i,1)________________________
c(k) = p
'**********FILL**********
_______k=k+1_______________________
p = ""
End If
End If
Next i
ReDim Preserve c(k)
c(k) = p
For i = 1 To k
'**********FILL**********
_____text1=text1+chr(13)+c(k)_________________________
Next i
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
--
2022-12-05 广告
2022-12-05 广告
图形化编程简单理解为用积木块形式编程,scratch和python也是其中的一种,属于入门级编程,以其简单生动的画面获得无数学生的喜爱,深圳市创客火科技有限公司是一家做教育无人机的公司,旗下有编程无人机,积木无人机及室内外编队,每款飞机含有...
点击进入详情页
本回答由--提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询