📄 excmain.frm
字号:
VERSION 5.00
Begin VB.Form ExcMain
BorderStyle = 1 'Fixed Single
Caption = "Com组件测试"
ClientHeight = 3780
ClientLeft = 45
ClientTop = 450
ClientWidth = 4815
Icon = "ExcMain.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3780
ScaleWidth = 4815
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton ComTest
Caption = "组件测试"
Height = 495
Left = 1800
TabIndex = 0
Top = 1680
Width = 1215
End
End
Attribute VB_Name = "ExcMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub ComTest_Click()
Dim ResSign As Long
Dim ErrInfo As String
Dim iLoop As Long
Dim jLoop As Long
Dim ComObj As Object
Dim ComColl As Collection
Dim ComSub As Collection
Set ComObj = CreateObject("ChoiceInfo.BaseLib")
With ComObj
.setUserID = 1
.setClassID = 10
.setTreeValue = 9
.setFormID = 2
.setChooseMulSign = True
Call .mShow(ErrInfo, 1)
Set ComColl = .getMulRowRes
End With
If ComColl.Count > 0 Then
For iLoop = 1 To ComColl.Count
Set ComSub = ComColl.Item(iLoop)
If ComSub.Count > 0 Then
For jLoop = 1 To ComSub.Count
MsgBox "设备内码:" & ComSub.Item(jLoop).FValue & Chr(13) & "类型内码:" & ComSub.Item(jLoop).FTypeID & Chr(13) & "映射位置:" & ComSub.Item(jLoop).MapCol
Next
End If
Next
End If
Set ComSub = Nothing
Set ComColl = Nothing
Set ComObj = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -