frmdataenv.frm

来自「《VB6数据库开发指南》所有的例程的源码」· FRM 代码 · 共 41 行

FRM
41
字号
VERSION 5.00
Begin VB.Form frmDataEnv 
   Caption         =   "What Year ?"
   ClientHeight    =   1305
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2535
   LinkTopic       =   "Form1"
   ScaleHeight     =   1305
   ScaleWidth      =   2535
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton cmdRunReport 
      Caption         =   "Run Report"
      Height          =   495
      Left            =   720
      TabIndex        =   1
      Top             =   600
      Width           =   1215
   End
   Begin VB.TextBox txtYear 
      Height          =   285
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   2295
   End
End
Attribute VB_Name = "frmDataEnv"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdRunReport_Click()
    If IsNumeric(txtYear.Text) = True Then
        DataEnvironment1.Command1 txtYear.Text
        DataReport1.Show
    Else
        MsgBox "Please enter a valid year, YYYY", 64
    End If
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?