IScheduledInvoke.Value

Syntax

Value: Variant;

Description

The Value property returns parameters of the task execution event represented as a value array in the Variant format.

Example

Executing the example requires that the repository contains a scheduled tasks container with the TASK_CONTAINTER identifier.

Sub UserProc;
Var
    MB: IMetabase;
    Cont: IScheduledTasksContainer;
    Tasks: IMetabaseObjectDescriptors;
    Task: IScheduledTask;
    Invoke: IScheduledInvoke;
    i: Integer;
    v: Array;
Begin
    MB := MetabaseClass.Active;
    Cont := MB.ItemById("TASK_CONTAINTER").Bind As IScheduledTasksContainer;
    Tasks := Cont.Tasks;
    Task := Tasks.Item(0).Bind As IScheduledTask;
    Invoke := Task.CreateInvokeEvent(DateTime.Now);
    v := Invoke.Value As Array;
    For i := 0 To v.Length - 1 Do
        Debug.WriteLine(v[i]);
    End For;
End Sub UserProc;

The array elements that contains a list of the event parameters that executes the first task of the scheduled tasks container is displayed in the development environment console after executing this example.

See also:

IScheduledInvoke