Write Non-System Read-Write Buffers if Changed
CodeWright® - API Macro - Royalty Free -
Write Non-System Read-Write Buffers if Changed.
This function writes buffers to disk if they have been previously modified.
The scope of this function can be set to either All buffers or just the Current buffer.
tlaWriteModifiedBuffer will only write a buffer if it is not a system buffer, not a read-only buffer, and is previously marked as modified.
This function calls tlaDateTime, tlaError, and tlaEventPrepareToSave.
Current version verified under:
CodeWright for .NET Restriction
The automatic date/time updating is provided by the tlaEventPrepareToSave event handler. Event processing is not available in CodeWright for .NET and as such this function will not automatically update files in that environment. When running under CodeWright for .NET tlaEventPRepareToSave is called directly to invoke this capability. When event handling is added to codeWright for .NET this reqriction will be removed.
There are three primary methods for installing this macro on your system. Method A uses the tlaMDE tool available for purchase from this website. Method B manipulates the macro repository directly. Method C uses the API Macro... tool provided in every copy of CodeWright (but not CodeWright for .NET).
Method A - tlaMDE - CodeWright or CodeWright for .NET
Method B - Copy to Repository - CodeWright or CodeWright for .NET
Method C - API Macro ... - CodeWright Only
tlaTools is a Dynamic Link Library that contains most of the API macros on this website in a single easy to install package. The tlaTools DLL can be purchased by selecting the Buy button on this page.
tlaWriteModifiedBuffer is included as a function in tlaTools.
Copyright © 1993-2005 Thom Little Associates, Ltd. revised
One Central Square, Keene, NH 03431-3787 phone 603-357-7567