Cancels some edit table events.

Usage

Set_Property(OLECtrlEntID, "OLE.Cancel", Value)

Values

Value can be any positive or negative whole number:

Default: 0

Remarks

The Cancel property is used only during certain events to cancel specific operations. The events for which this property applies are: BeforeDeleteRows, BeforeNewRows, BeforeUpdate, and PosChanging. These events are similar in that they all occur before certain actions are performed by the Edit Table (usually due to user interaction). Before the events are fired, the table resets this property to 0. To cancel the operation for which the event was fired, set this property to 1 or 2. Both values will cancel the event, but setting it to 1 will move the cursor the end of the cell's contents and setting it to 2 will highlight all of the cells contents.

This property only works as long as events are qualified in OpenInsight to process synchronously.

Example

// Cancel the event and move the cursor to the end of the cell (insert mode) 
Set_Property(@Window:".OLE_EDITTABLE", "OLE.Cancel", 1) 

// Cancel the event and highlight the cells contents (overwrite mode) 
Set_Property(@Window:".OLE_EDITTABLE", "OLE.Cancel", 2)
  • No labels