Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetime ()
Message
From
10/09/2008 03:08:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01346073
Message ID:
01346256
Views:
7
>I want to do something as:
>
>If thisDatetime > datetime()
>do event01_start
>
>---------------------------------------------------
>
>How can I store value to thisDatetime ?
>
>Can I just use "01/01/2009" 15:35" ?
>
>system is set to 24hs
thisDateTime = datetime(2009,1,1,15,35)
If m.thisDatetime > datetime()
  do event01_start
However be carefull where you use it. Once passed it would be always true. Maybe something like:
(these are table fields in fact, no?)
thisDateTime = datetime(2009,1,1,15,35)
event01_completed = .f. 
If (m.thisDatetime > datetime() and !event01_completed)
  do event01_start
  event01_completed = .t. && possibly set in event01_start routine
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform