Macros are small programs that are executed by Q++Studio to determine how to respond to the occurrence of a Macro Token. Macros are written and tested in the Q++Studio Macros Editor, using the Q++Studio Macro Language.
What makes macros powerful is that:
•You can write macros yourself, or have technical support write them for you, and immediately have new features, without waiting for the next update to Q++Studio.
•There is function inside Q++Studio associated with each type of token. In macros, you can use almost all the functions that Q++Studio uses internally. You can even evaluate another token within a macro, and you can call other macros from within a macro. Then, as a consequence of the macro's result, you can perform all the actions that Q++Studio is capable of performing on text and textboxes.
Macros are used as follows:
•The purpose of each macro is to calculate 3 results; a text result (sRESULT), a true/false result (bRESULT), and, less frequently, a numerical result (nRESULT). These calculations are based on system variables that reflect some initial conditions (such as the date of the token and the name of the token) and make use of the Q++Studio library of built-in macro functions.
•Then, in the Macros Options property of each DiaryGridLine, the results of the above calculations are used to specify that Q++Studio should perform some resulting actions on the token and/or the textbox that contains it.