Well, this is very odd to me, but will probably end up being a no-brainer. I finally found out that a 2 minute delay works fine, but when I go 5 or more minutes, it goes flaky and may only delay for a few seconds. Since the 2 minute is a value of 120 (stored in "TimeDely") and the 5 minute is a value 0f 300, I tried changing it from a BYTE to a WORD and then the 5 minute delay worked! The longest delay that I need is an hour which will be 3600, but when I use that value I'm back to the same problem.
Should't I be able to have a value over 32,000 in a BYTE without any problems?
Bookmarks