ITabCellBeforeChangeEventArgs.Value

Syntax

Value: Variant;

Description

The Value property determines the modified value, which will be located in the cell after the event has been handled.

Example

Executing the example requires a form. The following components are placed on the form: the TabSheetBox component and the UiTabSheet component named UiTabSheet1 and used as a data source for the TabSheetBox component. This procedure is used as a handler of the OnBeforeCellChange event.

Sub TabSheetBox1OnBeforeCellChange(Sender: Object; Args: ITabCellBeforeChangeEventArgs);

Var

New_val, Old_val: Variant;

Begin

Old_val := Args.TabSheet.Source.GetTabSheet.CellValue(Args.Row, Args.Column);

New_val := Args.Value;

End Sub TabSheetBox1OnBeforeCellChange;

After the event the Old_val variable contains the old value of the cell and the New_val variable contains the value that is to be saved to the cell after event handling.

See also:

ITabCellBeforeChangeEventArgs