Function GetList(fld As Control, ID As Variant, row As Variant, col As Variant, code As Variant) As Variant
Static ListCount As Long
Dim i as Long
Select Case code
Case acLBInitialize ' 初始化。
For i = 0 To 99
If ListSource(i) = "" Then Exit For
Next i
GetList = IIf(i, True, False)
ListCount = i
Case acLBOpen ' 打开。
GetList = Timer ' 唯一 ID。
Case acLBGetRowCount ' 获取行。
GetList = ListCount
Case acLBGetColumnCount ' 获取列。
GetList = 1
Case acLBGetColumnWidth ' 获取列宽。
GetList = -1 ' 使用默认宽度。
Case acLBGetValue ' 获取数据。
GetList = ListSource(row)
End Select
End Function