⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmqueery.frm

📁 关于数组的应用.包括登录窗和显示窗.如有不足之处请站长多多指教.谢谢!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frmqueery 
   Caption         =   "Form1"
   ClientHeight    =   4620
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6990
   LinkTopic       =   "Form1"
   ScaleHeight     =   4620
   ScaleWidth      =   6990
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Cmdquit 
      Caption         =   "退出(C)"
      Height          =   495
      Left            =   4200
      TabIndex        =   7
      Top             =   3240
      Width           =   1455
   End
   Begin VB.CommandButton Cmdqueery 
      Caption         =   "重新查询(N)"
      Height          =   495
      Left            =   1440
      TabIndex        =   6
      Top             =   3240
      Width           =   1455
   End
   Begin VB.TextBox txtbirth 
      Height          =   495
      Left            =   2520
      TabIndex        =   5
      Top             =   2280
      Width           =   2055
   End
   Begin VB.TextBox txtcode 
      Height          =   495
      Left            =   2520
      TabIndex        =   4
      Top             =   1560
      Width           =   2055
   End
   Begin VB.TextBox txtpersonname 
      Height          =   495
      Left            =   2520
      TabIndex        =   3
      Top             =   720
      Width           =   2055
   End
   Begin VB.Label Label3 
      Caption         =   "生日"
      Height          =   495
      Left            =   840
      TabIndex        =   2
      Top             =   2280
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "电话号码"
      Height          =   495
      Left            =   840
      TabIndex        =   1
      Top             =   1440
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "姓名"
      Height          =   495
      Left            =   840
      TabIndex        =   0
      Top             =   720
      Width           =   1215
   End
End
Attribute VB_Name = "Frmqueery"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Cmdqueery_Click()
FrmLogin.Show
Unload Frmqueery
End Sub

Private Sub Cmdquit_Click()
Unload FrmLogin
Unload Me
End Sub

Private Sub Form_Load()
For i = 1 To 10
arrname(i) = "person" & i
arrtele(i) = "6278567" & i
arrbirthday(i) = "1997-1-" & i
Next i
For i = 1 To 10
If arrname(i) = FrmLogin.txtname.Text Then
txtpersonname.Text = arrname(i)
txtcode.Text = arrtele(i)
txtbirth.Text = arrbirthday(i)
Exit For
End If
Next i
End Sub

⌨️ 快捷键说明

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