How Are Errors Handled During the Execution of an SVB Program?
STATISTICA Visual Basic provides the same facilities for error handling as other general implementations of Visual Basic. Thus, detailed discussions on error handling can be found in the numerous general sources describing this programming language. General Visual Basic errors, math errors, etc. A standard method for trapping general Visual Basic errors, such as math errors (e.g., division by zero), is to use the On Error Goto … statement, to direct the program flow to a particular label in the program. Note that each subroutine and function should have its own On Error Goto statement. Here is a simple example program that will generate a division-by-zero math error.