Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get date from time server
Message
From
18/04/2013 16:15:57
 
 
To
18/04/2013 16:12:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01571413
Message ID:
01571415
Views:
52
>Does anyone have a simple piece of FoxPro code to ask a time server
>for the current date?


I don't have the code, but we had this issue when communicating with a backend server. We created a table on the server which automatically populated a datetime field with each new entry. We would insert a new record, and then read the TOP 1 record when sorted by its auto-incrementing id number. We would then delete all entries below that value.

Clunky, but it worked generically on all DB engines that supported auto-population of datetime fields

UPDATE: I did not read the word "time" when I first responded. Just "server". Sigh. :-(
Previous
Reply
Map
View

Click here to load this message in the networking platform