Code: Select all
function Main()
lChDir(cFilePath(HB_ARGV(0)))
OVERRIDE METHOD HandleEvent IN CLASS TControl WITH ControlHE // <--------------
SET HELPFILE TO "ayuda1.chm"
SetHelpPopup('Ayuda.txt')
DEFINE WINDOW oWnd FROM 1, 1 TO 40, 120 ;
MENU BuildMenu()
oWnd:nHelpID := 'Intro'
ACTIVATE WINDOW oWnd
return nil
......
static function ControlHE( nMsg, nWParam, nLParam )
local Self := HB_QSelf()
...
Code: Select all
ayuda1.PRG(17) Error E0030 Syntax error "syntax error at 'METHOD'"