AnyDAC
ContentsIndexHome
PreviousUpNext
TADAdaptedDataSet.Disconnect Method

Disconnects the dataset from DBMS.

Group
Links
Parameters 
Description 
AAbortJob: Boolean = False 
If True, then current dataset task will be aborted. The code will wait, while task abortion will be finished. 

The Disconnect method optionally aborts current dataset task, like a Open, Execute, ExecSQL or rows fetching. Then closes dataset and unprepares it.

procedure Disconnect(AAbortJob: Boolean = False); override;
ADQuery1.Disconnect(True);
// is equivalent to:
// ADQuery1.AbortJob(True);
// ADQuery1.Close;
// ADQuery1.Unprepare;
What do you think about this topic? Send feedback!