Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can automatically refresh the form
Message
 
À
06/06/2005 05:58:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows 2000
Database:
Visual FoxPro
Divers
Thread ID:
01020386
Message ID:
01020406
Vues:
20
This message has been marked as a message which has helped to the initial question of the thread.
OK, Arun,

I forgot...
******************************
* main code
******************************
SET PROCEDURE xtimer.prg ADDTIVE
DO FORM anyform
RELEASE PROCEDURE xtimer.prg



******************************
* anyform methods
******************************
* anyform::Init()
This.AddObject("tmrRefresh","_tmrRefresh")


* anyform::Activate()
This.tmrRefresh.Enabled=.T.

* anyform::Deactivate()
This.tmrRefresh.Enabled=.F.

* anyform::Destroy()
This.tmrRefresh.Enabled=.F.


**************************************************
* xtimer.prg which is in the same folder as form *
**************************************************
DEFINE CLASS _tmrRefresh As Timer
   Name="_tmrRefresh"
   Enabled=.F.
   Interval=10*60*1000 && 10 minutes


   PROCEDURE Timer()
      Thisform.Refresh()
   ENDPROC

ENDDEFINE
>Hi Martin Jindra
>
>i try to use the code which you suggested, but there is some error
>
>"Methods and events cannot contain
>nested procedures or class definitions"
>
>i put the ;
>
>DEFINE CLASS _tmrRefresh As Timer
>....
>...
>....
>ENDDEFINE
>
>Pl. correct me.
>Arun, India
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform