📄 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 ErrInfo As String
Dim ComObj As Object
Dim Retas As Collection
Dim ObjColl As Collection
Dim iLoop As Long
Dim jLoop As Long
Dim ResObj As Object
Set ComObj = CreateObject("ChoiceItem.BaseLib")
Set ResObj = CreateObject("ChoiceItem.RetCls")
ComObj.setUserID = 1
ComObj.setClassID = 9
ComObj.setParentStr = "|0|"
ComObj.setMapCol = "12|1|0|0|0"
ComObj.setMapType = "2|1|0|0|0"
ComObj.setMulChoiceSign = True
Call ComObj.mShow(ErrInfo, 1)
'//MsgBox ComObj.getClassID
Set Retas = ComObj.getMulRowRes
If Retas.Count > 0 Then
For iLoop = 1 To Retas.Count
Set ObjColl = Retas.Item(iLoop)
If ObjColl.Count > 0 Then
For jLoop = 1 To ObjColl.Count
Set ResObj = ObjColl.Item(jLoop)
MsgBox ResObj.FValue
Next
End If
Next
End If
Set ResObj = Nothing
Set ComObj = Nothing
Set ObjColl = Nothing
' If Retas.Count > 0 Then
' For iLoop = 1 To Retas.Count
' Set ResObj = Retas.Item(iLoop)
' MsgBox ResObj.FValue
' Next
' End If
' MsgBox ComObj.getTreeID
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -