I'm trying create a Timer on a dialog by this way:
- Code: Select all Expand view
DEFINE DIALOG oDlg RESOURCE "TESTE01" OF oWnd
REDEFINE BITMAP oBmp ID 101 OF oDlg FILE (cQrc) ADJUST UPDATE
REDEFINE METER oMtr VAR nPerc TOTAL 100 ID 102 OF oDlg UPDATE
REDEFINE BUTTONBMP ID 105 OF oDlg ACTION ( oDlg:End() ) CANCEL UPDATE
DEFINE TIMER oTmr OF oDlg INTERVAL 5000 ACTION Consultar(oDlg,oTmr,oMtr,@nPerc,cIDPix)
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT oTmr:Activate()
However, the function Consultar() is never being executed. Do you know Why ?