mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-07 16:58:10 +02:00
* loCancelPending added to load flags
This commit is contained in:
parent
3485d5252b
commit
dbaafd3dd8
@ -1015,7 +1015,7 @@ type
|
||||
TFilterOption = (foCaseInsensitive, foNoPartialCompare);
|
||||
TFilterOptions = set of TFilterOption;
|
||||
|
||||
TLoadOption = (loNoOpen,loNoEvents,loAtEOF);
|
||||
TLoadOption = (loNoOpen,loNoEvents,loAtEOF,loCancelPending);
|
||||
TLoadOptions = Set of TLoadOption;
|
||||
TDatasetLoadEvent = procedure(DataSet: TDataSet; Data : JSValue) of object;
|
||||
TDatasetLoadFailEvent = procedure(DataSet: TDataSet; ID : Integer; Const ErrorMsg : String) of object;
|
||||
@ -4524,6 +4524,8 @@ function TDataSet.Load(aOptions: TLoadOptions; aAfterLoad: TDatasetLoadEvent): B
|
||||
begin
|
||||
if loAtEOF in aOptions then
|
||||
DatabaseError(SatEOFInternalOnly,Self);
|
||||
if loCancelPending in aOptions then
|
||||
CancelLoading;
|
||||
Result:=DoLoad(aOptions,aAfterLoad);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user