Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp timer pitfalls?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01250752
Message ID:
01250753
Views:
13
This message has been marked as the solution to the initial question of the thread.
You should disable timer at the beginnig of the processing and enable it afterwards.
PROCEDURE TIMER()
This.Enabled = .F.
set default to (this.cDownloadDirectory)
....
This.Enabled = .T.
ENDPROC
>
>
>
>I have subclassed the vfp timer that looks every minute in a directory for 10 files showing up, after that the program has to run a batch program. I have tried this program last friday and usually these files show up saturday. When coming to the office monday I noticed that the program stucked with an error: invalid path on the following syntax:
>
>
>PROCEDURE TIMER()
>
>set default to (this.cDownloadDirectory)
>
>....
>
>ENDPROC
>
>
>
>So I suspended it and resumed the program again. And to my suprise it continued w/o any problems. I know it is really vague, but is there something with the timer that I have to watch out for. Or are there any better options to achieve what I want.
>
>Thanks beforehand
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform