[菜鸟问题]:我怎样才能将某一层包含的图元加入到指定的选择集?
Dim fType, fData As Variant
BuildFilter fType, fData, 8, "layer1"
SSetObj.Select fType, fData
Public Sub BuildFilter(typeArray, dataArray, ParamArray gCodes())
Dim fType() As Integer, fData()
Dim index As Long, i As Long
index = LBound(gCodes) - 1
For i = LBound(gCodes) To UBound(gCodes) Step 2
index = index + 1
ReDim Preserve fType(0 To index)
ReDim Preserve fData(0 To index)
fType(index) = CInt(gCodes(i))
fData(index) = gCodes(i + 1)
Next
typeArray = fType: dataArray = fData
End Sub
页:
[1]