Value: Variant;
The Value property determines the modified value, which will be located in the cell after the event has been handled.
Executing the example requires a form. The following components are placed on the form: the TabSheetBox component and the UiTabSheet component namedUiTabSheet1 and used as a data source for the TabSheetBox. 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 variable Old_val contains the old value of the cell and the variable New_val contains the value that is to be saved to the cell after event handling.
See also: