IDynamicInstance.LoaderBlockSize

Fore Syntax

LoaderBlockSize: Integer;

Fore.NET Syntax

LoaderBlockSize: integer;

Description

The LoaderBlockSize property determines size of loaded dictionary elements block.

Comments

On dynamic loading dictionary elements are loaded by blocks. If necessary, load new elements, then next block of specified size is loaded.

Only on dictionary creation property value can be set up.

Fore Example

Executing the example requires that the repository contains MDM table dictionary with set dynamic loading of elements and with the DYNDIM identifier.

Add links to the Dimensions and Metabase system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    Dim: IDynamicInstance;
Begin
    MB := MetabaseClass.Active;
    Dim := MB.ItemById("DYNDIM").Open(NullAs IDimInstance;
    Debug.WriteLine("Size of loaded elements block: " + Dim.LoaderBlockSize.ToString);
End Sub UserProc;

After executing the example the console displays size of dictionary loaded elements block.

Fore.NET Example

The requirements and result of the Fore.NET example execution match with those in the Fore Example.

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Dimensions;

Public Shared Sub Main(Params: StartParams);
Var
    MB: IMetabase;
    Dim: IDynamicInstance;
Begin
    MB := Params.Metabase;
    Dim := MB.ItemById["DYNDIM"].Open(NullAs IDynamicInstance;
    System.Diagnostics.Debug.WriteLine("Size of loaded elements block: " + Dim.LoaderBlockSize);
End Sub;

See also:

IDynamicInstance