Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timer capability outside form
Message
From
06/08/2004 20:17:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00931480
Message ID:
00931485
Views:
28
Althought that will probably work, it really isn't necessary to add it to a form, or screen.
Public MyTimer
MyTimer = CreateObject("cMyTimer")
should also work.


>Anne, something like this works, I do not know if there are some drawbacks though...
>
>
>_screen.AddObject('MyTimer1', 'MyTimer')
>
>define class MyTimer as Timer
>	interval	= 5000
>	enabled		= .t.
>	
>	function timer
>		this.Enabled = .F.
>		wait window 'Timer Fired' timeout 1
>		this.Enabled = .T.
>	endfunc
>enddefine
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform