Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
#Define Compile Date doesn't work right
Versions des environnements
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
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