Adoserver:SetRecordSet()

<< Click to Display Table of Contents >>

Navigation:  Dataservers > AdoServer Class > Methods >

Adoserver:SetRecordSet()

Previous pageReturn to chapter overviewNext page

Purpose

Change the underlying recordset of the Server

 

Prototype

METHOD SetRecordSet ( oNewRs )  

 

 

Argument(s)

oNewRs        New AdoRecordSet Object

 

Return

LOGIC        Ok if succeeded, else FALSE

 

Description

With this method you can bind the AdoServer to a new recordset. The Server will move to the first record in the recordset. If you want the server to stay on a certain record, you can save its bookmark and restore the bookmark later.

 

Note        Technically it is possible to bind the server to a recordset with a different column layout. When you are using the server in combination with DataWindows, DataBrowsers etc. this may not be such a good idea, because these objects may get confused if you change the column layout of the server !

 

See Also

Adoserver, AdoRecordSet, AdoServer:RecordSet