Orb interface  Chapter 5: C Routines Reference

Chapter 4: ActiveX Client Interfaces

RecordSet interface

Description

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.

Properties

Methods

Usage

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.

See also

Fields collection, Field interface




RecordSet.MoveFirst

Description

Positions the row pointer before the first row in the current result set.

Syntax

RecordSet.MoveFirst()

Usage

Newly created RecordSet objects always have the row pointer positioned before the first record.

See also

MoveNext




RecordSet.MoveNext

Description

Moves the row pointer one row forward. Sets the EOF property to true if the row pointer has moved past the last row.

Syntax

RecordSet.MoveNext()

Usage

MoveNext is typically called in a loop while the EOF property tests as true.

See also

MoveFirst




RecordSet.NextRecordSet

Description

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.

Syntax

RecordSet.NextRecordSet()

Usage

NextRecordSet is typically called in a loop until the EOF property tests as true.





Copyright © 2005. Sybase Inc. All rights reserved. Chapter 5: C Routines Reference