This section provides information about how to write and debug macros. Macros are used to add functionality to your application. Some of the reasons you might want to create a macro include: connecting to a database, performing calculations on host data, saving a value to a global variable for reuse, transfer of data to other desktop applications, calling a web services, creating an object at runtime, dynamically setting the properties of an object at runtime, determining which selection the user has made, navigating to a specific screen and much, much more.
Macros support a wide variety of operations including conditional execution, the ability to access or change any data on the form, manipulation of form and control properties (such as fonts and colors), executing and communicating with other desktop applications, mathematical calculations and text manipulation.
Another alternative to macros are scripts. Generally speaking, if you are comfortable with scripting languages then scripts will be a better option as they provide you with more flexibility, however if you have little scripting experience, then macros may be easier to work with. Refer to the scripts section of Help for more information.
Information about how macros are executed, labels, conditions, properties, events, variables and expressions and how they are used in Newlook. We also touch on the Startup macro, and why it is so important in your solution.
Practical information on writing macros, including writing your first macro, assigning a macro to an event-related property, adding a macro to the Newlook Smartclient menu, creating a macro shortcut key, deleting a macro, and using Find & Replace to search for text in the current macro or using Find All to search for text in all logic.
Discusses macro debugging, including: Approaches to Debugging, Error Handling with Macros, Using Break Points, and Using the Debugging Window.