Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public oTimer
Declare Integer Sleep in Win32API integer milliseconds
oTimer = CreateObject("testtimer")
Define Class testtimer as timer
Interval = 500
Enabled = .T.
Procedure Timer()
? Seconds()
Sleep(1000)
Doevents Force
Endproc
EndDefine
Fortunately, accuracy is not an issue in this instance.
It is set to create and upload a stock level file to a web server every 2 hours or so. It wouldn't matter if it missed an entire upload.
Oh you naughty contrarian youWindows Task Scheduler. This is the kind of thing it's *for*, and it's good at it
A previous version used that method but if someone was in the middle of a till transaction when task scheduler kicked in, both the shop assistant and the customer were left twiddling their thumbs while the file was processed.
it appears to lock the table until it has finished creating the file.
* vfp started twice
* in one vfp session do
BEGIN TRANSACTION
USE some.dbf
APPPEND BLANK
* in the other vfp session simply try
Use some.dbf
* this will either fail or wait for access (depending on REPROCESS setting and also )
* in session one do
ROLLBACK
*at that moment the other vfp session gains access to the dbf