Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Quit application when file('xxxxxxxxxx')
Message
 
To
04/07/2000 17:39:58
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00387980
Message ID:
00388870
Views:
8
Checkout Seize Manager by Mike Chalk in the Files section
under Classes.

HTH

>The following sample works:
>
>
>_SCREEN.ADDOBJECT([oTimer1],[oTimer])
>
>DEFINE CLASS oTimer AS TIMER
>	INTERVAL = 1000
>	PROC TIMER
>	IF FILE([foo.txt])
>		QUIT
>	ENDIF
>ENDPROC
>ENDDEFINE
>
>Dave
>
>>I Have add a timer to my main appl that checks if the file bachup.txt is there.
>>But the timerevent or the quit-command doesn't works untill I click several times on the window.
>>My goal is the add a poss. the quit an applic. from a command at the server. file=Fcreate('t:\backup.txt')
>>
>>this is the code
>>
>>_screen.AddObject('mytimer','itstime')
>>
>>DEFINE CLASS mytimer AS TIMER && Create timerevent
>>interval=1000
>>PROCEDURE timer
>> if file('t:\backup1.kto')
>> quit
>> endif
>>enddefine
>>
>>Is there somebody who can help me whit this or has another solution in his mind.
>>
>>Thanks.
Speak using soft and sweet words in case you have to eat them later.
Previous
Reply
Map
View

Click here to load this message in the networking platform