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

📄 frmsdz.frm

📁 VB与欧姆龙PLC通过RS-232串口通讯 的上位机程序
💻 FRM
📖 第 1 页 / 共 5 页
字号:
   Begin VB.CommandButton cmdback 
      BackColor       =   &H00C0FFFF&
      Caption         =   "返 回"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   5280
      MaskColor       =   &H0080C0FF&
      Style           =   1  'Graphical
      TabIndex        =   11
      Top             =   4560
      Width           =   1695
   End
   Begin VB.Label lbltxt 
      BackStyle       =   0  'Transparent
      Caption         =   "请选择配方:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   405
      Left            =   4320
      TabIndex        =   25
      Top             =   240
      Width           =   2535
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "9#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   9
      Left            =   5520
      TabIndex        =   21
      Top             =   3120
      Width           =   1050
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "8#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   8
      Left            =   3840
      TabIndex        =   20
      Top             =   3120
      Width           =   1050
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "沥青下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   7
      Left            =   2160
      TabIndex        =   12
      Top             =   4080
      Width           =   1290
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "7#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   6
      Left            =   2160
      TabIndex        =   13
      Top             =   3120
      Width           =   1050
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "6#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   5
      Left            =   5520
      TabIndex        =   14
      Top             =   2160
      Width           =   1050
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "5#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   4
      Left            =   3840
      TabIndex        =   15
      Top             =   2160
      Width           =   1050
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "4#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   3
      Left            =   2160
      TabIndex        =   16
      Top             =   2160
      Width           =   1050
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "3#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   2
      Left            =   5520
      TabIndex        =   17
      Top             =   1200
      Width           =   1050
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "2#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   1
      Left            =   3840
      TabIndex        =   18
      Top             =   1200
      Width           =   1050
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "1#下料量"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   240
      Index           =   0
      Left            =   2160
      TabIndex        =   19
      Top             =   1200
      Width           =   1050
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   0
      Left            =   1920
      Picture         =   "Frmsdz.frx":08DF
      Stretch         =   -1  'True
      Top             =   1200
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   1
      Left            =   3600
      Picture         =   "Frmsdz.frx":7881
      Stretch         =   -1  'True
      Top             =   1200
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   2
      Left            =   5280
      Picture         =   "Frmsdz.frx":E823
      Stretch         =   -1  'True
      Top             =   1200
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   3
      Left            =   1920
      Picture         =   "Frmsdz.frx":157C5
      Stretch         =   -1  'True
      Top             =   2160
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   4
      Left            =   3600
      Picture         =   "Frmsdz.frx":1C767
      Stretch         =   -1  'True
      Top             =   2160
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   5
      Left            =   5280
      Picture         =   "Frmsdz.frx":23709
      Stretch         =   -1  'True
      Top             =   2160
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   6
      Left            =   1920
      Picture         =   "Frmsdz.frx":2A6AB
      Stretch         =   -1  'True
      Top             =   3120
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   8
      Left            =   3600
      Picture         =   "Frmsdz.frx":3164D
      Stretch         =   -1  'True
      Top             =   3120
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   9
      Left            =   5280
      Picture         =   "Frmsdz.frx":385EF
      Stretch         =   -1  'True
      Top             =   3120
      Width           =   1695
   End
   Begin VB.Image Image1 
      Enabled         =   0   'False
      Height          =   975
      Index           =   10
      Left            =   1920
      Picture         =   "Frmsdz.frx":3F591
      Stretch         =   -1  'True
      Top             =   4080
      Width           =   1695
   End
End
Attribute VB_Name = "sdz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim sdz(9) As String * 4
Dim time_on As Boolean
Dim sendornot As Boolean
Dim exitflat As Boolean
Dim stopflat As Boolean
Dim sendflat As Boolean
Private Sub cmddelete_Click()
Dim temp As VbMsgBoxResult
temp = MsgBox("真的要删除该配方数据吗?", vbQuestion + vbYesNo, "确认")
If Combo1.Text = "" Then
MsgBox "请选择配方!", vbCritical + vbOKOnly, "信息提示"
Exit Sub
End If
If Option3.Value Then
Select Case Combo1.Text
Case Is = "配方1"
Set lfrpt = dbrpt.OpenRecordset("lf1", dbOpenDynaset)
If lfrpt.RecordCount > 0 Then
Text1.Text = lfrpt.Fields(2)
Text2.Text = lfrpt.Fields(3)
Text3.Text = lfrpt.Fields(4)
Text4.Text = lfrpt.Fields(5)
Text5.Text = lfrpt.Fields(6)
Text6.Text = lfrpt.Fields(7)
Text7.Text = lfrpt.Fields(8)
Text8.Text = lfrpt.Fields(9)
Text9.Text = lfrpt.Fields(10)
Text10.Text = lfrpt.Fields(11)
If temp = vbYes Then
lfrpt.Delete
lfrpt.Close
Set lfrpt = Nothing
MsgBox "配方数据删除成功!", vbExclamation + vbOKOnly, "信息提示"
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Exit Sub
Else
Exit Sub
End If
Else
MsgBox "该配方没有设置数据,请选择其它配方!", vbExclamation + vbOKOnly, "信息提示"
Exit Sub
End If
Case Is = "配方2"
Set lfrpt = dbrpt.OpenRecordset("lf2", dbOpenDynaset)
If lfrpt.RecordCount > 0 Then
Text1.Text = lfrpt.Fields(2)
Text2.Text = lfrpt.Fields(3)
Text3.Text = lfrpt.Fields(4)
Text4.Text = lfrpt.Fields(5)

⌨️ 快捷键说明

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