The Timer is not functioning when I modified the TestTim3.Prg In FWH\Samples. The only change which I have made is that I used Dialog instead of Wndow.
If I change the DIALOG back to WINDOW, then The Timer is working fine. I am confused with this.
- Code: Select all Expand view
- #include "FiveWin.ch"
static oWnd
static lActive := .f.
//----------------------------------------------------------------------------//
function Main()
local oTmr
DEFINE DIALOG oWnd TITLE "FileControl"
DEFINE TIMER oTmr INTERVAL 10000 ACTION CheckFile() OF oWnd
ACTIVATE TIMER oTmr
ACTIVATE DIALOG oWnd
return nil
//----------------------------------------------------------------------------//
function CheckFile()
if ! lActive
lActive = .t.
MsgInfo( "I check anything from here" )
lActive = .f.
endif
return nil
//----------------------------------------------------------------------------//
Regards
Anser