Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#Define Compile Date doesn't work right
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
#Define Compile Date doesn't work right
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00995198
Message ID:
00995198
Vues:
74
Hi All
Need to capture the project compile date & time. Tried the following code, but it appears to show the time you're running the EXE not when you compiled it. I assume that if the time works that way so will the 'compile date'. Originally the code was in the appMain.appApplication.Init() method. Moved it to a .prg but that didn't help.

#DEFINE c_dDATE_BUILT DATETIME()

gdCplDate=c_dDATE_BUILT
gcCplDate=DTOC(c_dDATE_BUILT)
gcCplTime=RIGHT(TTOC(c_dDATE_BUILT),11)

I've mostly stayed away from Preprocessor Directives.
All help appreciated.
Bill Wright
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform