Com return values, Visual basic, Record._newenum() – Campbell Scientific LoggerNet Server SDK User Manual

Page 152: Name, Important

Advertising
background image

Section 18. CsiDataSource Control Reference

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

E_CSI_ARRAY_OUT_OF_BOUNDS

Error: Array out of bounds

E_CSI_NOT_FOUND

Error: Couldn't find the broker by name
in the broker map

E_CSI_FAIL

Error: Wrong variant type passed to this
method or unexpected error

Visual Basic

Return Type
value

Example
Number value (like an array):
Long iterator
For iterator = 0 to myRecord.Count – 1

... = myRecord(iterator).value

Next iterator

Referencing the Broker by name:
DIM valueName as String

valueName = "battTemp"

DIM value as long
value = myRecord("battTemp").value

OR
value = myRecord(valueName).value

Record._NewEnum()

Name

Record._NewEnum()

Important

This method is only intended for use with the Visual Basic programming
language. 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, there is no need to access this method directly.

Visual Basic

Example
Dim v As value

For Each v in myRecord
... = v.value

Next

18-28

Advertising