【VB开源代码栏目提醒】:网学会员在VB开源代码频道为大家收集整理了5.6.1.frm提供大家参考,希望对大家有所帮助!
VERSION 5.00
Begin VB.Form Form6
Caption = "Form6"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form6"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
Dim str() As String
'定义动态数组
Dim a, i As Integer
Dim temp As String
a = -1
Do
temp = InputBox("输入字符串")
If Trim(temp) = "" Then
Exit Do
End If
a = a + 1
'增加动态数组大小
ReDim Preserve str(a)
'重新配置控件,保留原有数据
str(a) = temp
'放入数据
Loop
For i = UBound(str) To LBound(str) Step -1
Print str(i)
Next
End Sub
上一篇:
5.5.frm
下一篇:
科研管理杂志简介