Form.OnCommand

Syntax

Sub OnCommand(Sender: Object; Args: ICommandEventArgs);

Begin

//set of operators;

End Sub OnCommand;

Parameters

Sender. Parameter that returns the component that generated the event.

Args. Parameter that enables the user to determine event parameters.

Description

The OnCommand event occurs when a command is sent to this form from another one.

Comments

The PostCommand and SendCommand methods are used to send commands.

If Foresight Analytics Platform is started with the singleinstance key for activation of the application started earlier, the BeforeInstanceActivate message will be sent to all started forms. The first form that processes this message and returns the value not equal to 0, will be activated. The form that processed the BeforeInstanceActivate message will also get the AfterInstanceActivate message. Messages should be processed in the OnCommand event.

Example

The example of use is given in description of the PostCommand and SendCommand methods.

See also:

Form