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
展开
 我来答
FM网络
2014-05-07 · TA获得超过825个赞
知道小有建树答主
回答量:1130
采纳率:0%
帮助的人:970万
展开全部
'筛选按钮代码
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 广告
图形化编程简单理解为用积木块形式编程,scratch和python也是其中的一种,属于入门级编程,以其简单生动的画面获得无数学生的喜爱,深圳市创客火科技有限公司是一家做教育无人机的公司,旗下有编程无人机,积木无人机及室内外编队,每款飞机含有... 点击进入详情页
本回答由--提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式