Declare variables, parameters, typedefs, and functions in both global and local DECLARE blocks.
- Create a global declare block for your project by using the DECLARE statement in your main project file.
- Add parameters, variables, or user-defined SPLASH functions to the global declare block.
Elements defined in this declare block are accessible to any elements in the project that are not inside a module.
- Create local declare blocks by using the DECLARE statement within derived streams, windows, or both..
- Add variables, parameters, or user-defined SPLASH functions to the local declare block.
These elements are accessible only from within the stream, window, or flex operator in which the block is defined.