KBBlock (subclass of KBItem)

On action (onaction)

Script routine to be invoked when a block-level action is about to take place. The routine has two arguments which will be the block and the action code. A false result aborts the action.

On current (oncurrent)

Script routine to be invoked when a record becomes current. The routine takes two arguments, the block and the query row number.

On uncurrent (onuncurrent)

Script routine to be invoked when a record ceases to be current. The runtine takes two arguments, the block and the query row being left.

On display (ondisplay)

Script routine to be invoked when a record is displayed. The routine takes two arguments, the block and the query row being displayed.

Pre-Query (prequery)

Script routine to be invoked just before select query is executed. The function takes argument, the block. If the result is false, the query returns no data.

Pre-Insert (preinsert)

Script routine to be invoked just before a new row is inserted into a table. The function takes two arguments, the block and the query row number. Insert is aborted unless the function returns true.

Pre-Update (preupdate)

Script routine to be invoked just before a row is updated in a table. The routine takes two arguments, the block and the query row number. Update is aborted unless the function returns true.

Pre-Delete (predelete)

Script routine to be invoked jusst before a row is deleted from a table. The function takes two arguments, the block and the query row number. Deletion is aborted unless the function returns true.

Post-Query (postquery)

Script routine to be invoked just after a select query has been issued, but before any data is displayed. The function takes a single argument, the block.

Post-Sync (postsync)

Script routine to be invoked just after an insert, update or delete query has been issued. The routine takes four arguments; the block, the query row, the action and the primary key of the affected row.

On change (onchange)

Script routine to be invoked when the value associated with any data control within the block is changed by the user. The routine takes two arguments, the block and the query row number.