Files
harbour-core/harbour/tests/testcls.prg
1999-12-15 09:58:43 +00:00

24 lines
346 B
Plaintext

// Testing Harbour classes ON ERROR feature
#include "hbclass.ch"
function Main()
local o := Test()
o:Any() // Any message is not defined for Class Test, but
// it will invoke ON ERROR Any() method
return nil
CLASS Test
ON ERROR Any( cMsg )
ENDCLASS
METHOD Any( cMsg ) CLASS Test
Alert( "Inside Any" )
return nil