company logo

DBBaseContext :: doBeforeCreate - Before create handler

The before create handler is called before creating a new data instance (DBP_Create event). The before create handler may deny creating the data instance by returning an error ( any value >0 ).

The handler can be overloaded in specialized 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  :: doBeforeCreate (  )