Type library name |
JaguarTypeLibrary |
DLL name |
jagproxy.dll |
Represents a set of tabular data returned by a component method invocation. Provides methods to iterate through the rows in each result set. Modeled after RecordSet in Microsoft’s ActiveX Data Objects (ADO) interface.
Fields – Returns a Fields collection that contains a Field object for each column in the current row.
EOF – Boolean. When tested after calling the MoveNext method, indicates whether the application has iterated over all rows in a result set. When tested after calling the NextRecordSet method, indicates whether the application has iterated through all available result sets.
RecordCount – Integer. Specifies the number of rows in the current result set.
MoveFirst – Positions the row pointer before the first row in the current result set.
MoveNext – Moves
the row pointer one row forward. Sets the EOF property
to true
if the row pointer
has moved past the last row.
NextRecordSet – Returns
a RecordSet that represents the next result set that
was returned by the method invocation. If all result sets have been viewed,
returns an empty RecordSet and sets the EOF property
to true
.
RecordSet allows ActiveX client applications to retrieve result sets returned by a component method invocation. Each proxy component interface contains a GetRecordSet method. You can call this method after each method invocation to obtain a RecordSet object that contains the result sets returned by the method. If the method returned no result sets, GetRecordSet returns an empty RecordSet object. (You can test for this condition with the EOF property.)
For example code that uses RecordSet objects, see Chapter 20, “Creating ActiveX Clients,” in the EAServer Programmer’s Guide.
Fields collection, Field interface
Positions the row pointer before the first row in the current result set.
RecordSet.MoveFirst()
Newly created RecordSet objects always have the row pointer positioned before the first record.
Moves the row pointer one row forward. Sets the EOF property
to true
if the row pointer
has moved past the last row.
RecordSet.MoveNext()
MoveNext is typically called in a loop
while the EOF property tests as true
.
Returns a RecordSet that represents the
next result set that was returned by the method invocation. If all
result sets have been viewed, returns an empty RecordSet and
sets the EOF property to true
.
RecordSet.NextRecordSet()
NextRecordSet is typically called in a
loop until the EOF property tests as true
.
Copyright © 2005. Sybase Inc. All rights reserved. |