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

📄 frmcodeedit.frm

📁 云台开发程序
💻 FRM
📖 第 1 页 / 共 3 页
字号:
         Height          =   195
         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 = "FrmCodeEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************
'声明:
'**************************************
Option Explicit
Private fso As Object
Private strFileName As String
Public UserResult As VbMsgBoxResult '记录用户选则OK还是CANCEL
'***************************************
'加载初始化值
'****************************************
Private Sub Form_Load()
  Dim fileNumber As Integer
  Dim i As Integer
  fileNumber = FreeFile
  strFileName = App.Path + "\iniFile\configFile.dat"
  Set fso = CreateObject("scripting.filesystemobject")
  Initnumber '初始化
  For i = 0 To 31
      txtCodeYuntai(i).Text = CBin(ByteCodeChoose(i))
  Next i
'*********************************************
  If fso.fileexists(strFileName) Then
      Open strFileName For Binary As fileNumber
      Get #fileNumber, , CodeEdit
      Close #fileNumber
      For i = 0 To 4
         txtCodeAct(i) = CodeEdit.data4(i)
      Next i
      For i = 0 To 1
         txtCodeMir(i) = CodeEdit.data4(i + 5)
      Next i
      For i = 0 To 1
         txtCodeStatus(i) = CodeEdit.data4(i + 11)
      Next i
      Exit Sub
  End If
  '如果没有文件,就以下面数据初始化
  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
'*********************************************
SetlabIndex
End Sub
'其它
'******************************
Private Sub cmdCancel_Click()
  Unload Me
End Sub
'******************************
'声明结束
'******************************
Private Sub cmdOK_Click()
  Dim i As Integer
  Dim fileNumber As Integer
  For i = 0 To 4
     data4(i) = Trim(txtCodeAct(i))
     CodeEdit.data4(i) = data4(i)
  Next i
  For i = 0 To 1
     data4(i + 5) = Trim(txtCodeMir(i))
     CodeEdit.data4(i + 5) = data4(i + 5)
  Next i
  For i = 0 To 1
     data4(i + 11) = Trim(txtCodeStatus(i))
     CodeEdit.data4(i + 11) = data4(i + 11)
  Next i
  fileNumber = FreeFile
  Open strFileName For Binary As #fileNumber
  Put #fileNumber, , CodeEdit
  Close #fileNumber
  Unload Me
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 + -