ReportEvents.OnCellChange

Syntax

OnCellChange(Sheet: IPrxSheet; Row: Integer; Column: Integer; Value: Variant);

Parameters

Sheet. Report sheet that has generated the event.

Row. Row generated event.

Column. Column generated event.

Value. Value of the cell generated event.

Description

The OnCellChange method implements the event that occurs on changing a regular report cell value.

Comments

On calling the method, the IPrxReportUserEvents.EventOnCellChange event, that can be redefined, if required, is processed in parallel in core.

Example

Executing the example requires a regular report. Connect a unit to the regular report, select the connected unit and the EventsClass class as an event handler.

Add links to the Report, Ui system assemblies.

Class EventsClass: ReportEvents
// Change cell value
Public Sub OnCellChange(Sheet: IPrxSheet; Row: Integer; Column: Integer; Value: Variant);
Var
    i: Integer;
Begin
    i := Column + 1;
    WinApplication.InformationBox("Cell value was changed in the row " + Row.ToString + " in the column " + i.ToString + " on the sheet " + Sheet.Name + ". New value " + Value);
End Sub OnCellChange;
End Class EventsClass;

After changing the cell value in the regular report an information message is displayed.

See also:

ReportEvents