Com return values, Visual basic, Tablecollection._newenum() – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual
Page 89: Name

Section 16. CsiBrokerMap Control Reference
COM Return Values
Table of Possible Values
Code Meaning
S_OK
Success: Normal return
E_CSI_ARRAY_OUT_OF_BOUNDS
Error: Array subscript out of bounds
E_CSI_NOT_FOUND
Error: Table not found by name in the
broker map
E_CSI_FAIL
Error: Wrong variant type passed or
unexpected error
Visual Basic
Return Type
Table
Example
By number:
long iterator
For iterator = 0 to BrokerMap.Broker("cr9000").Tables.Count – 1
Debug.Print BrokerMap.Brokers("cr9000").Tables.ID
Next iterator
By string:
Dim tableName as String
Dim myid as long
tableName = "cr10x"
myid = BrokerMap.Broker("cr9000").Tables(tableName).id
TableCollection._NewEnum()
Name
TableCollection._NewEnum() — Return the next Table in the
sequence.
This method is only intended for use with Visual Basic. Visual
Basic programmers do not need to access this method directly.
They use it indirectly by using the collections with the
For
Each
loop. This method is included in the documentation to
explain why the method exists, but, again, it is not accessed
directly.
Important
16-13