📄 vb1c.tmp
字号:
Index = 27
Left = 4620
TabIndex = 60
Top = 2565
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 26
Left = 3120
TabIndex = 59
Top = 2565
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 25
Left = 1680
TabIndex = 58
Top = 2565
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 24
Left = 200
TabIndex = 57
Top = 2565
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 23
Left = 4620
TabIndex = 56
Top = 2205
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 22
Left = 3120
TabIndex = 55
Top = 2205
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 21
Left = 1680
TabIndex = 54
Top = 2205
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 20
Left = 200
TabIndex = 53
Top = 2205
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 19
Left = 4620
TabIndex = 52
Top = 1845
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 18
Left = 3120
TabIndex = 51
Top = 1845
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 17
Left = 1680
TabIndex = 50
Top = 1845
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 16
Left = 200
TabIndex = 49
Top = 1845
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 15
Left = 4620
TabIndex = 48
Top = 1485
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 14
Left = 3120
TabIndex = 47
Top = 1485
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 13
Left = 1680
TabIndex = 46
Top = 1485
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 12
Left = 200
TabIndex = 45
Top = 1485
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 11
Left = 4620
TabIndex = 44
Top = 1125
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 10
Left = 3120
TabIndex = 43
Top = 1125
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 9
Left = 1680
TabIndex = 42
Top = 1125
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 8
Left = 200
TabIndex = 41
Top = 1125
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 7
Left = 4620
TabIndex = 40
Top = 765
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 6
Left = 3120
TabIndex = 39
Top = 765
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 5
Left = 1680
TabIndex = 38
Top = 765
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 4
Left = 200
TabIndex = 37
Top = 765
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 3
Left = 4620
TabIndex = 36
Top = 405
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 2
Left = 3120
TabIndex = 35
Top = 405
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 1
Left = 1680
TabIndex = 34
Top = 405
Width = 135
End
Begin VB.Label labCodeYuntai
Alignment = 1 'Right Justify
AutoSize = -1 'True
Caption = "1:"
Height = 195
Index = 0
Left = 200
TabIndex = 33
Top = 405
Width = 135
End
End
End
Attribute VB_Name = "frmCode"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************
'声明:
'**************************************
Option Explicit
Public UserResult As VbMsgBoxResult '记录用户选则OK还是CANCEL
'其它
'******************************
Private Sub cmdCancel_Click()
Unload Me
End Sub
'******************************
'声明结束
'******************************
Private Sub cmdOK_Click()
Dim i As Integer
For i = 0 To 4
data4(i) = txtCodeAct(i).Text
Next i
For i = 0 To 1
data4(i + 5) = txtCodeMir(i).Text
Next i
For i = 0 To 1
data4(i + 11) = txtCodeStatus(i).Text
Next i
Unload Me
End Sub
Private Sub defaultcodeset_Click()
Dim i As Integer
SaveSetting "yuntai", "code", 100, 18
For i = 0 To 31
SaveSetting "yuntai", "code", i, txtCodeYuntai(i).Text
Next i
For i = 0 To 4
SaveSetting "yuntai", "codeact", i, txtCodeAct(i).Text
Next i
For i = 0 To 1
SaveSetting "yuntai", "Mircodeact", i, txtCodeMir(i).Text
Next i
For i = 0 To 1
SaveSetting "yuntai", "codeauto", i, txtCodeStatus(i).Text
Next i
cmdCancel.Enabled = False
End Sub
'***************************************
'加载初始化值或者注册表中值
'****************************************
Private Sub Form_Load()
Dim defaultcode, i As Integer
Initnumber
For i = 0 To 31
txtCodeYuntai(i).Text = CBin(ByteCodeChoose(i))
Next i
defaultcode = GetSetting("yuntai", "code", 100, "")
If defaultcode = 18 Then
For i = 0 To 4
txtCodeAct(i).Text = GetSetting("yuntai", "codeact", i, "")
data4(i) = GetSetting("yuntai", "codeact", i, "")
Next i
For i = 0 To 1
txtCodeMir(i).Text = GetSetting("yuntai", "Mircodeact", i, "")
data4(i + 5) = GetSetting("yuntai", "Mircodeact", i, "")
Next i
For i = 0 To 1
txtCodeStatus(i).Text = GetSetting("yuntai", "codeauto", i, "")
data4(i + 11) = GetSetting("yuntai", "codeauto", i, "")
Next i
Else
For i = 0 To 4
txtCodeAct(i).Text = data4(i)
Next i
For i = 0 To 1
txtCodeMir(i).Text = data4(i + 5)
Next i
For i = 0 To 1
txtCodeStatus(i).Text = data4(i + 11)
Next i
End If
SetlabIndex
End Sub
'***************************************
'设置静态文本框文本
'****************************************
Private Sub SetlabIndex()
Dim i As Integer
For i = 0 To 31
labCodeYuntai(i).Caption = i + 1
Next i
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -