Page 1 of 1

Run Program only once

Posted: Tue Oct 09, 2007 8:02 am
by Otto
How to control that a program only runs once.

Regards,
Otto

Re: Run Program only once

Posted: Tue Oct 09, 2007 8:12 am
by Enrico Maria Giordano

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
EMG

Posted: Tue Oct 09, 2007 8:34 am
by Otto
Thank you.
Otto