www.icetips.com  Icetips Utilities Documentation 5/15/2016    

Code Template: Store compile date/time in variables

Previous  Top  Next  


This template will store the compile date and/or time in variables that you specify.  It can also store the concatenated date/time in a single string variable formatted the way you want it. 

 

Note that this may not get updated if the procedure you add this to hasn't changed.  One way to force the update would be to delete the source module for this procedure before you generate and compile the application.  If you are using automated building process, such as Build Automator it makes it easier to do that. 

 

StoreCompileDateTimeInVariable

 

Variable for compile dateThis variable receives the compile date value.  This value is created when the application code is generated and does not change at runtime.  This variable should be a DATE or a LONG variable.

 

Variable for compile timeThis variable receives the compile time value.  This value is created when the application code is generated and does not change at runtime.  This variable should be a TIME or a LONG variable.

 

Format to stringWhen this checkbox is checked, it enables the "Compile Date/Time String" group below.  This allows you to place the formatted compile date and or time into a single string variable to place on a window or a report.

 

Variable for compile stringThis variable receives the formatted compile date and/or time values depending on the pictures specified for each variable.  This should be a STRING or CSTRING variable.  The required size varies based on format picture that you choose.

 

Date pictureThe format picture for the date.  Type in a different picture if you need or use the [...] button to select a new picture.

 

Time pictureThe format picture for the time.  Type in a different picture if you need or use the [...] button to select a new picture.

 

SeparatorString that is placed between the date and the time. 

 

ResultsShows the formatted date and time as it will appear on the window or report.

 

See also:

Example app: TestTemplate

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/storecompiledateinvariable.htm