What Are Subroutines and Functions?
Typically, complex applications written in STATISTICA (or any other) Visual Basic are structured. In other words, most programs will not consist of a single routine, but of many separate routines that will call each other. Every macro program consists of a Main program inside a Sub Main … End Sub block. Inside the main program you can call subroutines and functions to perform repetitive tasks, or just to keep the structure of your program transparent. Here is an example program that consists of several subroutines and functions; note that the main program performs no computations, and only contains calls to the subroutines.
Related Questions
- In addition, on some platforms, the functions are available immediately; whereas, the subroutines are available in a special subroutine library that you must access. Difference between Linked Object and Embedded Object?
- What Is the Difference between Passing Variables to Subroutines and Functions By Value and By Reference?
- What Are Subroutines and Functions?