|
|
BDE API Examples (DbiForceRecordReread)
Rereads a single record from the server on demand, refreshing one row only, rather than clearing the cache.
Update the record buffer with current record information:
This example is included with Delphi in the BDE32.HLP file.
Update Delphi's internal record buffer with new information and display
This procedure uses the following input:
UpdateRecord(Table1);
The function is defined as follows:
procedure UpdateRecord(Table: TTable);
begin
if Table.Database.IsSQLBased = False then
raise EDatabaseError.Create('UpdateRecord can only be used with SQL databases');
// Move the BDE cursor to the position of the Delphi cursor...
Table.UpdateCursorPos;
// Update the Delphi record buffer with new information...
Check(DbiForceRecordReread(Table.Handle, Table.ActiveBuffer));
// Tell Delphi to show the new data in the record buffer...
// NOTE: This call does not cause a server hit...
Table.Resync([rmExact]);
end;
Back to BDE API Reference Page
|
DISCLAIMER: You have the right to use this technical information subject to
the terms of the No-Nonsense License Statement that you received with the Borland product to which
this information pertains.
|
|