Jump to Real's How-to Main page

Display compile timestamp in the w_about window

[appmanager contructor event]
constant string ls_version =  &
   'Application version 1.0~r~nCompile Date:  ' + &
    string(Today(), 'mmm dd, yyyy hh:mm')
THIS.OF_SETVERSION(LS_VERSION)
Another way way is to look at the executable file and extract the last modified date attribute.
date dt
time tm

f_setfilesrv(lnv_fs, True)
lnv_fs.of_GetLastWriteDateTime &
   (gnv_app.iapp_object.appname + ".exe", dt, tm)
st_build.text = &
   "Built on "+string(dt, "mm/dd/yyyy")+" at "+string(tm,"hh:mmam/pm")
DESTROY lnv_fs

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]