Run Program only once

Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Run Program only once

Post by Otto »

How to control that a program only runs once.

Regards,
Otto
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Run Program only once

Post 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
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Post by Otto »

Thank you.
Otto
Post Reply