Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get date from time server
Message
De
18/04/2013 16:15:57
 
 
À
18/04/2013 16:12:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01571413
Message ID:
01571415
Vues:
53
>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. :-(
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform