Run Program only once

Run Program only once

Postby Otto » Tue Oct 09, 2007 8:02 am

How to control that a program only runs once.

Regards,
Otto
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

Re: Run Program only once

Postby Enrico Maria Giordano » Tue Oct 09, 2007 8:12 am

Code: Select all  Expand view
#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


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Otto » Tue Oct 09, 2007 8:34 am

Thank you.
Otto
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests