![]() |
tlaMacro
Save/Delete Single API Macro in Buffer CodeWright® - API Macro - Royalty Free - Send Comments |
PurposeSave/Delete Single API Macro in Buffer. OperationThe CodeWright Tools | API Macros... allows the editing and execution of CodeWright API macros from within a dialog. This function provides an alternative that dialog box and allows you to use all the capabilities of CodeWright to develop your macro just like any other document. When you are done, simply execute this function to save the document to the system repository (cwright.mac). In addition, you can delete the macro from the repository. There are two options to this function: save and delete: Save Invoke tlaComment to update the date/time stamp in the file (if present) and then write the macro to the macro repository (cwright.mac). The macro name used is from the header as described below. Delete Delete the macro from the macro repository (cwright.mac). If the macro is not present in the repository, nothing occurs. The macro name used is from the header as described below. This facility is most useful if you establish two buttons that are assigned to "Save" and "Delete". Special ConsiderationThe tlaMDE Dynamic Link Library provides a robust superst of the capabilities in tlaMacro. It operates on multiple macros in the buffer, and supports compilation, execution, and fetching. Examples
Input Parameters
Other Input ParametersThe first line of the file must be a section header of the form ...
The macro name used by tlaMacro is extracted from this sction header. If the file associated with the buffer is c:\somefolder\tlaTest.cwa and the buffer contains ...
The macro name used will be xxxTest. Note that the name of the file name, name in the header, and name on the function are all differtent. tlaMacro uses the name in the header and passes that name to CodeWright as the macro name. CodeWright uses the macro name and ignores the name on the function statement. Return Codes
ReferencetlaMacro calls tlaComment, tlaDateTime, and tlaError, CompatibilityCurrent version verified under:
CodeWright for .NET RestrictionNone. InstallationThere 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
PurchasetlaTools 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. tlaMacro 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 |