📄 dbbuch_frm.frm
字号:
VERSION 5.00
Begin VB.Form DBBUCH_FRM
Caption = "DBBUCH"
ClientHeight = 3210
ClientLeft = 60
ClientTop = 345
ClientWidth = 3330
LinkTopic = "Form1"
ScaleHeight = 3210
ScaleWidth = 3330
StartUpPosition = 3 'Windows-Standard
Begin VB.ListBox ID_DBBUCH_LIST
Height = 1425
Left = 720
TabIndex = 7
Top = 1080
Width = 1815
End
Begin VB.CommandButton IDOK
Caption = "lesen/read"
Height = 375
Left = 1800
TabIndex = 6
Top = 2640
Width = 1215
End
Begin VB.CommandButton IDCANCEL
Caption = "zur點k/cancel"
Height = 375
Left = 120
TabIndex = 5
Top = 2640
Width = 1335
End
Begin VB.Frame Frame4
BackColor = &H00C0C0C0&
Caption = "Verbindung/connection"
Height = 615
Left = 240
TabIndex = 0
Top = 240
Width = 2775
Begin VB.OptionButton VERB
Caption = "4"
Height = 255
Index = 3
Left = 2040
TabIndex = 4
Top = 240
Width = 495
End
Begin VB.OptionButton VERB
Caption = "3"
Height = 255
Index = 2
Left = 1440
TabIndex = 3
Top = 240
Width = 495
End
Begin VB.OptionButton VERB
Caption = "2"
Height = 255
Index = 1
Left = 840
TabIndex = 2
Top = 240
Width = 495
End
Begin VB.OptionButton VERB
Caption = "1"
Height = 255
Index = 0
Left = 360
TabIndex = 1
Top = 240
Width = 495
End
End
End
Attribute VB_Name = "DBBUCH_FRM"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
VERB(VerbIdx).value = True
ID_DBBUCH_LIST.Clear
End Sub
Private Sub IDCANCEL_Click()
DBBUCH_FRM.Visible = False
End Sub
Private Sub IDOK_Click()
Dim i As Long
Dim s As String
Dim s1 As String
res = new_ss(VerbIdx + 1)
If (res = 0) Then
#If S7_300 Then
res = db_buch(value_word(0))
#Else
res = 33028
#End If
End If
If (res = 0) Then
ID_DBBUCH_LIST.Clear
For i = 0 To 255
If (value_word(i) <> 0) Then
s1 = i
s = "DB " + s1
If ((value_word(i) And BST_IN_RAM) <> 0) Then s = s + " RAM"
If ((value_word(i) And BST_IN_EPROM) <> 0) Then s = s + " EPROM"
ID_DBBUCH_LIST.AddItem (s)
End If
Next i
End If
If (res <> 0) Then
ERROR_FRM.Show 1, Me
End If
End Sub
Private Sub VERB_Click(Index As Integer)
VerbIdx = Index
ID_DBBUCH_LIST.Clear
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -