company logo

DBBaseContext :: doBeforeRead - Before read event handler

The before read event handler is called before reading an instance (DBP_Read event). The handler can be used to deny read access by returning an error ( any value >0 ) or changing the visibility property to false (visible(false)).

The handler can be overloaded in specialized property and type context class implementations.

Return value:  Execution error ( int32  )

The value is usually returned from context functions or actions in order to report the result of execution. The variable may contain following values:

  • -1: function/action not executed
  • 0: function executed normally
  • 1-9: Function executed with errors. Error codes depend on the function/action called.

Implementation details

int32 DBBaseContext  :: doBeforeRead (  )