PrefetchComplete / PrefetchRowsLoaded / PrefetchError

Class: TMMUpdater

property PrefetchComplete     : Boolean;  { read-only }
property PrefetchRowsLoaded   : Integer;  { read-only }
property PrefetchError        : TAppError;  { read-only }

State properties for the result of the last Prefetch call, if any.
Prefetch is optional; these properties have safe default values when it is never called.

Property Meaning
PrefetchComplete True when Prefetch succeeded (including empty result). False when Prefetch was called and failed. True by default (before Prefetch is called) so Execute is not blocked when Prefetch is not used.
PrefetchRowsLoaded Row count loaded into the buffer. 0 when Prefetch failed, returned an empty result, or was never called.
PrefetchError Structured error from the last Prefetch call. Code = EC_NONE on success or when Prefetch was never called. Use PrefetchError.Msg for the failure description. See TAppError.

Execute only refuses to run when PrefetchComplete = False, which happens exclusively when Prefetch was called and failed. If Prefetch was never called, PrefetchComplete is True and Execute is not affected. To recover from a failed Prefetch, call it again.

See Also

(C) 2026 Easygate, Lda