Valutazione attuale: 0 / 5

Stella inattivaStella inattivaStella inattivaStella inattivaStella inattiva
 

ON ERROR

Designate a method as an error handler for the class
Syntax
ON ERROR <MethodName>( [<params,...>] )
Argument(s)
<MethodName> Name of the method to define
<params,...> Optional parameter list
Description
ON ERROR is a synonym for ERROR HANDLER. It names the method that should handle errors for the class being defined.
Example(s)
CREATE CLASS TWindow
   ON ERROR  MyErrHandler()
ENDCLASS
Status
Ready
Compliance
This is Harbour specific
Platform(s)
This is available on all platforms
See also

Object Oriented Programming, ERROR HANDLER, CLASS, METHOD, VAR