Versions des environnements
Network:
Windows 2003 Server
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement