Главная страница | назад





Article #15420: Table data subset through IProvider

 Question and Answer Database

FAQ420D.txt   Table data subset through IProvider 
Category   :DCOM/MultiTier/ActiveForm
Platform    :All
Product    :Delphi 3.x  

Question:
How can I position a TTable and get data from that starting 
position from the Provider?

Answer:
Using TQuery and Provider.SetParams is preferred. However,
it is possible to do this with TTable.  First have the
client retrieve only the meta-data from the table by
setting PacketRecords = 0, then calling Open.   Next call
an automation method on the server (you must define this
method), which will cause the table to be positioned on
the desired record.  Finally, set PacketRecords to some
value greater than zero, and call GetNextPacket.

7/16/98 4:31:28 PM
 

Last Modified: 01-SEP-99