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

📄 frmset.frm

📁 用microsoft vb6.0写的上班考勤系统!
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmSet 
   Caption         =   "设备管理"
   ClientHeight    =   7080
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   11550
   LinkTopic       =   "Form1"
   ScaleHeight     =   7080
   ScaleWidth      =   11550
   StartUpPosition =   3  '窗口缺省
   WindowState     =   2  'Maximized
   Begin VB.TextBox Text1 
      Height          =   1575
      Left            =   3000
      TabIndex        =   2
      Top             =   720
      Width           =   2055
   End
   Begin VB.CommandButton Command2 
      Caption         =   "清空数据"
      Height          =   975
      Left            =   4200
      TabIndex        =   1
      Top             =   3480
      Width           =   1815
   End
   Begin VB.CommandButton Command1 
      Caption         =   "设置时间"
      Height          =   975
      Left            =   2640
      TabIndex        =   0
      Top             =   3480
      Width           =   1575
   End
End
Attribute VB_Name = "FrmSet"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public ST, Adatetime
Private Sub Command1_Click()

status = OpenComm(com)
node_addr = "0"
password = "0"
If status > 0 Then
  MsgBox "打开串口成功!", vbOKOnly, "提醒!"
  Wo = Hand_Shake(status, node_addr, password)
  If Wo = 0 Then
         MsgBox "握手成功!!", vbOKOnly, "提醒!"
         Adatetime = CStr(Format(Now, "yyyymmddhhmmss"))
         ST = Set_NodeTime(status, Adatetime)
         Text1.Text = Adatetime
         
         If status > 0 Then
           
           CloseComm (status)
           MsgBox "关闭串口成功!", vbOKOnly, "提醒!"
         End If
  End If
End If
End Sub

Private Sub Command2_Click()

status = OpenComm(com)
node_addr = "0"
password = "0"
If status > 0 Then
  MsgBox "打开串口成功!", vbOKOnly, "提醒!"
  Wo = Hand_Shake(status, node_addr, password)
  If Wo = 0 Then
         MsgBox "握手成功!!", vbOKOnly, "提醒!"
         ST = Clear_All_Data(status)
         If ST = 0 Then
           MsgBox "清空数据成功", vbOKOnly, "提醒!! "
         End If
         If status > 0 Then
           
           CloseComm (status)
           MsgBox "关闭串口成功!", vbOKOnly, "提醒!"
         End If
  End If
End If
End Sub

⌨️ 快捷键说明

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