<< Click to Display Table of Contents >> Adoserver:SetRecordSet() |
![]() ![]() ![]() |
Change the underlying recordset of the Server
METHOD SetRecordSet ( oNewRs ) CLASS Adoserver
oNewRs New AdoRecordSet Object
Return
LOGIC Ok if succeeded, else FALSE
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 !
Adoserver, AdoRecordSet, AdoServer:RecordSet