sr.frm

来自「职工管理系统」· FRM 代码 · 共 116 行

FRM
116
字号
VERSION 5.00
Begin VB.Form sr 
   Caption         =   "输入"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "录入"
      Height          =   375
      Left            =   600
      TabIndex        =   5
      Top             =   2280
      Width           =   975
   End
   Begin VB.TextBox Text5 
      Height          =   270
      Left            =   1080
      TabIndex        =   4
      Top             =   1560
      Width           =   855
   End
   Begin VB.TextBox Text4 
      Height          =   270
      Left            =   3120
      TabIndex        =   3
      Top             =   960
      Width           =   975
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   1080
      TabIndex        =   2
      Top             =   960
      Width           =   855
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   3120
      TabIndex        =   1
      Top             =   360
      Width           =   975
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   1080
      TabIndex        =   0
      Top             =   360
      Width           =   855
   End
   Begin VB.Label Label5 
      Caption         =   "补贴:"
      Height          =   255
      Left            =   240
      TabIndex        =   10
      Top             =   1680
      Width           =   615
   End
   Begin VB.Label Label4 
      Caption         =   "工资:"
      Height          =   255
      Left            =   2280
      TabIndex        =   9
      Top             =   1080
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "职工号:"
      Height          =   255
      Left            =   240
      TabIndex        =   8
      Top             =   360
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "性别:"
      Height          =   255
      Left            =   240
      TabIndex        =   7
      Top             =   960
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "姓名:"
      Height          =   255
      Left            =   2280
      TabIndex        =   6
      Top             =   360
      Width           =   615
   End
End
Attribute VB_Name = "sr"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    zg1.zgh = Val(Text1.Text)
    zg1.zgxm = Text2.Text
    zg1.zgxb = Val(Text3.Text)
    zg1.zggz = Val(Text4.Text)
    zg1.zgbt = Val(Text5.Text)
    If zg1.zgxb = 0 Or zg1.zgxb = 1 Then
        If zg1.zgh >= 1 And zg1.zgh <= 999 Then
            
            Open "d:\rsk1.txt" For Append As #1
            Write #1, zg1.zgh, zg1.zgxm, zg1.zgxb, zg1.zggz, zg1.zgbt
            Close #1
        End If
    End If
End Sub

⌨️ 快捷键说明

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