IPrxDataCache.FlushDataCache

Syntax

FlushDataCache;

Description

The FlushDataCache method clears data cache.

Comments

The method is relevant if data cache is enabled, that is, IPrxDataCache.UseDataCache = True.

Example

Executing the example requires a regular report with the REGULAR_REPORT identifier, which contains relational data area.

Add links to the Metabase, Report system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    DataCache: IPrxDataCache;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REGULAR_REPORT").Edit As IPrxReport;
    DataCache := Report.TableSources.Item(0).DataCache;
    DataCache.UseDataCache := True;
    DataCache.FlushDataCache;
    (Report As IMetabaseObject).Save;
End Sub UserProc;

After executing the example data cache is cleared for the relational data area.

See also:

IPrxDataCache