GoFiler Legato Script Reference
Legato v 1.5d Application v 5.25a
|
Table of Contents | < < Previous | Next >> |
Chapter Three — Data Types and Operators (continued)
In Legato, there are two types of predefined data: data declared using the define directive (#define) and global variables. Predefined data can be of the following types: integers, floating-point numbers, character strings, and handles. Cluster and object types, including arrays, are not permitted as predefined data.
Global variables are declared outside the scope of any particular function. They are therefore, available to the entire script. For more information on variable scope, see Section 3.2 Variable Scope. Though global variables can be used to create predefined or constant data that is available to the entire script, there is nothing to prevent a function from altering a global variable, thus changing its value for the rest of the script. Programmers are advised to use caution when using global variables to contain predefined data.
The #define directive can also be used to create predefined data. For more information on this directive, see Section 4.16 Directives.
When a defined term is used, it is effectively the same as typing that value in the script, for example:
hWords = WordParseCreate(WP_SGML_TAG);
is the equivalent of:
hWords = WordParseCreate(1);
The former is easier to read and remember.
By default, Legato will run with the SDK definitions in place. These are available on the support website or can be loaded in the program files folder for the application within the “Templates\Script” folder. The definitions are in two main sections: definitions supporting Legato functions and events; and, select definitions for the Windows SDK such as dialog control styles and notifications.
Table of Contents | < < Previous | Next >> |
© 2012-2024 Novaworks, LLC. All rights reserved worldwide. Unauthorized use, duplication or transmission prohibited by law. Portions of the software are protected by US Patents 10,095,672, 10,706,221 and 11,210,456. GoFiler™ and Legato™ are trademarks of Novaworks, LLC. EDGAR® is a federally registered trademark of the U.S. Securities and Exchange Commission. Novaworks is not affiliated with or approved by the U.S. Securities and Exchange Commission. All other trademarks are property of their respective owners. Use of the features specified in this language are subject to terms, conditions and limitations of the Software License Agreement.