TsgcWSPClient_DatasetEvents › OnBeforeSynchronize

OnBeforeSynchronize Event

Fires when the server announces the start of a Synchronize batch.

Syntax

property OnBeforeSynchronize: TNotifyEvent;
// TNotifyEvent = procedure(Sender: TObject) of object

Default Value

Remarks

Raised when the server sends the "synchronize start" marker in response to a Synchronize call. Use it to disable UI controls, put the Dataset in a known empty state, or call DisableControls before the batch of new-record messages arrives. OnAfterSynchronize fires when the batch completes.

Example

procedure TForm1.oProtocolBeforeSynchronize(Sender: TObject);
begin
  FDMemTable1.DisableControls;
end;

Back to Events