IVariableStub.IsLoading

Syntax

IsLoading: Boolean;

Description

The IsLoading property returns whether data is loaded to the source. True - data is loaded.

Example

Executing the example requires that the repository contains a modeling container with the CONT_MODEL identifier containing a variable with the VAR identifier.

Add links to the Metabase, Cubes system assemblies.

Sub UserProc;
Var
    MB: IMetabase;
    MObj, VObj: IMetabaseObjectDescriptor;
    Stub: IVariableStub;
Begin
    MB := MetabaseClass.Active;
    MObj := MB.ItemById("CONT_MODEL");
    VObj := MB.ItemByIdNamespace("VAR", MObj.Key);
    Stub := VObj.Bind As IVariableStub;
    If Stub.IsLoading Then
        If Stub.IsSaving Then
            Debug.WriteLine(Data in variable is loaded and saved);
        Else
            Debug.WriteLine(Data in variable is loaded but not saved);
        End If;
    Else
        Debug.WriteLine(Data in variable is not loaded);
    End If;
End Sub UserProc;

After executing the example the console window displays information about state of data variable.

See also:

IVariableStub