Marshall Brooks
Member
- Local time
- Today, 06:37
- Joined
- Feb 28, 2023
- Messages
- 701
Unless you set .TimerInterval = 0The timer function is ALWAYS running, counting down the interval to determine when to open again.
Unless you set .TimerInterval = 0The timer function is ALWAYS running, counting down the interval to determine when to open again.
What I meant of course was the function that I wrote in the part where the timer triggered 'something' - because the 'something' ran for a couple seconds to read the fileThe timer function is ALWAYS running, counting down the interval to determine when to open again.
Also - not sure it matters, but I don't check for a 0 or a 1 in the file. I just check for a file with a certain name in a certain folder. (It's actually an empty text file). I'm not sure, but that is likely faster than having to open and read the file.
Their code shuts down the database UNLESS the file is present. So all it takes is someone saying "What is chkfile.ocz? Looks unimportant, let's delete it!" - and everyone is locked out of the database
It's far less readable when you're counting milliseconds that the brain has to slow or not slow - and I meant the ones a bit more complex as Marshall indicated below. Whether you're used to seeing it or not.@Isaac
What do you mean by triple boolean negatives?
Is that the a = b or not c sort of construct, using boolean operators.
It's perfectly readable, but the meaning may not be apparent to those who are not used to seeing that sort of code.
The point of the SE is that you replace it every time you start the import process again. It is never meant to be permanent.How do I ensure that the SE is up-to-date?