Tore,
>Time() - storedtime >=1200 && (20*60)
I think you typed too fast, is not *that* easy <g>
Assuming that StoredTime is allways from today, it will be more like this
? Datetime() - Ctot(Dtoc(Date()) + ' ' + StoredTime) >= 20 * 60
I'll guess a good estimate would be
ltCurrent = Datetime()
ldDate = Date() + iif(ttoc(ltCurrent, 2) >= StoredTime, 0, 1)
ltCurrent - Ctot(Dtoc(ldDate) + ' ' + StoredTime) >= 20 * 60
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges