Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change time in Foxpro-session
Message
De
23/08/2010 14:12:25
 
 
À
23/08/2010 08:29:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01477896
Message ID:
01478005
Vues:
65
If all you need is to return a modified date or date/time, can you just create a wrapper function/program to return the modified date/time. Instead of DATE(), TIME(), or DATETIME(), you would call the same routine which accepts a parameter identifying what you want returned.

FUNCTION GetDate
LPARAMETERS tnType
LOCAL lxReturnVal, ltSystemDate
ltSystemDate = DATETIME()
DO CASE
CASE tnType = 1 && Date Only -- DATE()
** lxReturnVal = Current Date + 1 Year
CASE tnType = 2 && Date/Time -- DATETIME()
** lxReturnVal = Current Date + 1 Year with Current Time
CASE tnType = 3 && Time Only

ENDCASE
RETURN lxReturnVal

>Does anyone know if/how I can change the datetime in my Visual Foxpro-application ?
>
>After starting our application, in some occasions, i must be able to set the date a year ahead without changing the Windows datetime.
>So when i call the Date(), Time() or DateTime()-function I must get a later date returned...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform