Declaring Project Variables, Parameters, Datatypes, and Functions

Declare variables, parameters, typedefs, and functions in both global and local DECLARE blocks.

  1. Create a global declare block for your project by using the DECLARE statement in your main project file.
  2. 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.
  3. Create local declare blocks by using the DECLARE statement within derived streams, windows, or both..
  4. 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.