How to control that a program only runs once.
Regards,
Otto
Run Program only once
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Run Program only once
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
IF ISEXERUNNING( CFILENOEXT( HB_ARGV( 0 ) ) )
? "The app is already running"
RETURN NIL
ENDIF
? "This is the app's main loop"
RETURN NIL