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:
01250769
Views:
15
Oh ok I see, I'll try this. Thanks.
>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
Zakaria al Azhar
My blog on Actuaris.net
Previous
Reply
Map
View

Click here to load this message in the networking platform