Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Twenty minutes ago
Message
 
To
06/09/2006 15:22:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01151468
Message ID:
01151478
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform