📄 文本框_平均值f1.frm
字号:
VERSION 5.00
Begin VB.Form frmRowCol
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "提供列数和行数"
ClientHeight = 1680
ClientLeft = 60
ClientTop = 450
ClientWidth = 5520
LinkTopic = "Form1"
ScaleHeight = 1680
ScaleWidth = 5520
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdExit
Cancel = -1 'True
Caption = "退 出"
Height = 375
Left = 3720
TabIndex = 5
ToolTipText = "单击后结束程序运行"
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdOK
Caption = "确 定"
Default = -1 'True
Height = 375
Left = 2280
TabIndex = 4
ToolTipText = "在给定列数和行数后单击可以转到录入窗体"
Top = 1080
Width = 1215
End
Begin VB.TextBox txtCol
Alignment = 2 'Center
Appearance = 0 'Flat
Height = 375
Left = 600
TabIndex = 0
Top = 480
Width = 1335
End
Begin VB.TextBox txtRow
Alignment = 2 'Center
Appearance = 0 'Flat
Height = 375
Left = 3360
TabIndex = 1
Top = 480
Width = 1335
End
Begin VB.Label lblCol
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "在下面的文本框键入列数(<=15)"
ForeColor = &H80000008&
Height = 255
Left = 120
TabIndex = 3
Top = 120
Width = 2535
End
Begin VB.Label lblRow
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "在下面的文本框键入行数(<=30)"
ForeColor = &H80000008&
Height = 255
Left = 2760
TabIndex = 2
Top = 120
Width = 2655
End
End
Attribute VB_Name = "frmRowCol"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'参数窗体
'启动窗体
Option Explicit
'确定
Private Sub cmdOK_Click()
intCol = Val(txtCol)
If intCol > 15 Then
MsgBox "列数不能超过15!重新提供或“退出”"
Exit Sub
End If
intRow = Val(txtRow)
If intRow > 30 Then
MsgBox "行数不能超过30!重新提供或“退出”"
Exit Sub
End If
'按行数和列数重新定义数组
ReDim dblArray(1 To intRow, 1 To intCol)
Unload Me '卸载取得行数、列数窗体
frmArray.Visible = True '显示录入数据窗体
End Sub
'退出
Private Sub cmdExit_Click()
Unload Me
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -