Hi,
I've created a DLL using a timer object to perform a certain task continuosly. I tried to create the object manually in VFP using createobject
and it seems to work but the timer doesn't work continuosly.
code:
define class Process as custom olepublic
ADD OBJECT TimerObj as Timer
interval = 5000
Enabled = .T.
Procedure timer
cEwsdFle="F:\ewsd\notes.og"
if !file((cEwsdFle))
cPath=fcreate((cEwsdFle),0)
else
cPath=fopen((cEwsdFle),2)
=FPUTS(cPath,"creating log file,this is only a test")
=fclose(cPath)
endif
endproc
enddefine
Thanks for any help
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only