Insert Enterprise Standard Date/Time When File is Saved
Visual SlickEdit® - Slick-C Macro - Royalty Free -
Insert Enterprise Standard Date/Time When File is Saved.
This function automates the process of adding a date/time stamp to a file.
Before a buffer write occurs, this function is called. If the file being written is one of the module types being date/time stamped, the current date/time is inserted appropriately before the document is written to the file.
This function stamps the current date/time into any comment statement that is of the form:
This function calls
It is useful to have a "starter" date/time in the template that you use for module creation. If you use the supplied format emitted by tlaDateTime, an example of a "starter" date/time for C# might be:
The document types (file extensions) currently supported by this function are:
There currently is no "exit mechanism" in Visual SlickEdit. Enabling this exit is actually modifying the distributed Visual SlickEdit code.
To enable this exit closely follow the Special Installation instructions below.
Input Parameters / Return Codes
When instaled, renamed and enabled the function save accepts all the input parameters normally passed to save and passes them to the original code that is now rename as tlaWrappedSave. (See Special Installation below.)
This function calls tlaDateTime.
This function required that you rename save to tlaWrappedSave in macros\files.e. (See Special Installation below.)
Current version verified under:
Perform the following steps:
Then enable the exit:
To later disable the exit:
tlaSlick is a Visual Slick-C module that contains all of the Slick-C macros on this website in a single easy to install package. The tlaSlick module can be purchased by selecting the Buy button on this page.
tlaEventSave is included as a function in tlaSlick.
Copyright © 1993-2005 Thom Little Associates, Ltd. revised
One Central Square, Keene, NH 03431-3787 phone 603-357-7567