|
发表于 2002-7-30 12:50:00
|
显示全部楼层
用数组方式填充一对变量以用作为选择集过滤器使用
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
功能
用数组方式填充一对变量以用作为选择集过滤器使用
参数
两个变量(非变体数组)和一个无限制数量的组代码/值对
示例
BuildFilter fType, fData, 0, "LINE", 7, "WALLS"
注意
无 |
|