![]() |
tlaEventSave
Insert Enterprise Standard Date/Time When File is Saved Visual SlickEdit® - Slick-C Macro - Royalty Free - Send Comments |
PurposeInsert Enterprise Standard Date/Time When File is Saved. OperationThis 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:
Special ConsiderationThere 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 CodesWhen 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.) ReferenceThis function calls tlaDateTime. This function required that you rename save to tlaWrappedSave in macros\files.e. (See Special Installation below.) CompatibilityCurrent version verified under:
Special InstallationPerform the following steps:
Then enable the exit:
To later disable the exit:
PurchasetlaSlick 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 |