beautypg.com

Important, Visual basic, 6 recordcollection – Campbell Scientific LoggerNet-SDK Software Development Kit User Manual

Page 153: 1 properties, Recordcollection.count, Name, Description, Com return values, 2 methods, Recordcollection.item()

background image

Section 18. CsiDataSource Control Reference

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.6 RecordCollection

18.6.1 Properties

RecordCollection.Count

Name

RecordCollection.Count As Long

Description

The number of values in the collection

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

18.6.2 Methods

RecordCollection.Item()

Name

RecordCollection.Item(Value id, Record ppIRecord)

Description

This method is used to iterate through the values by the specified index ID.

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_FAIL

Error: An unexpected error has
occurred

18-29