Hi,
I have to be sure at 100% that every users every users are logged off.
In your opinion is it dangerous to modify this? :
and then
//------------------------------------------------------------------------//
This is only a test condition
IF cTime >= "20:00:00"
Many thanks
Marco
I have to be sure at 100% that every users every users are logged off.
In your opinion is it dangerous to modify this? :
METHOD ClockOn() CLASS TMsgBar
local cTime := Time()
if ::oClock == nil
// keep the ':=' below for XBase++ compatibility
::oClock := TMsgItem():New( Self, cTime, ::GetWidth( cTime ) + 12,,,, .t.,;
{ || WinExec( "Control date/time" ) } )
::oClock:lTimer = .t.
::oClock:bMsg = { || [b]myTime()[/b] }
endif
::CheckTimer()
return nil
//---------------------------------------------------------------------------//and then
//------------------------------------------------------------------------//
FUNCTION MYTIME()
LOCAL cTime := TIME()
IF cTime >= "20:00:00"
logfile( "forced_exit.log" , { cTime , M->cUte_dos } ) // M->cUte_dos is the number of user
CLOSE DATABASE
QUIT
ENDIF
RETURN cTimeThis is only a test condition
IF cTime >= "20:00:00"
Many thanks
Marco
Marco Boschi
info@marcoboschi.it
info@marcoboschi.it