Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timer capability outside form
Message
De
06/08/2004 20:17:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00931480
Message ID:
00931485
Vues:
24
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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform