Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 and Excel
Message
De
18/11/2003 06:48:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00806542
Message ID:
00850924
Vues:
26
>Cetin
>
>I have put a timer control on the form. Could you give me an example of how you fire it up and the code you would use - I have never used a timer at all
>
>Thanks for your help
>
>
>Colin

release oExcel
oTimer = CreateObject('myTimer')
*read events

Define Class myTimer As Timer
Interval = 1000
cFile = ''

Procedure init
Lparameters tcFile
this.cFile = tcFile
endproc

Procedure Timer
local lnHandle
lnHandle = fopen(this.cFile,12) && Try to open RW
if lnHandle > 0
this.Enabled = .F. && Stop timer
fclose(lnHandle)
*clear events
*File is free now
endif
Endproc
Enddefine
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform