GeneralSVBConventions
- Events
- Controlled Loops
To create a controlled loop, you must use the For...Next loop structure. This loop structure requires a counter variable to keep track of the current loop iteration along with the specification of how many loops should be ran. The following example demonstrates a For loop that doubles a variable's value: - Conditional Loops
Conditional loops provide the ability to run a block of code through a loop when the number of loop iterations are not known until run time. There are three different types of conditional loops that provide their own unique features for different circumstances. - How to use Strings in Statistica Visual Basic
Statistica Visual Basic supports the use of text values called strings. Strings can be used either directly or by using string variables. When strings are used directly, they need to be enclosed in double quotes. For example: - Passing Lists of Strings to Statistica Visual Basic Functions
In some Statistica Visual Basic functions, it is necessary to pass collections (lists) of strings, (e.g., a list of case names for a plot, names of entry/edit fields in a list box, etc.). In these cases you must use delimited text strings (i.e., text separated by a tab or the pipe character "|"). Some examples of such strings are: - Statistica Visual Basic Syntax Reference - User-defined Functions and Subroutines
Statistica Visual Basic supports user-defined subroutines and functions, allowing the user to build large, structured programs. Libraries of subroutines and functions can be saved in separate files and included in programs via the Include metacommand '$include:"J:\Filename" - Basic Rules for Simple SVB Programs
- Advanced Conditional Expressions
- Variables and Values of Variables
Contractual, local, global, and static variables. Variables that can be used in subroutine and function procedures fall into four categories: Arguments that are passed to the procedure, local variables, global variables, and static variables. - Variable and Function Naming Conventions
When naming functions, variables, and subroutines, there are a few rules and considerations that need to be applied. - Statistica Visual Basic Syntax Reference - User-defined Functions and Subroutines (Arguments)
The general syntax for arguments in a function or subroutine declaration is: - Array Indexing
- Redimensioning an Array
- How to Specify Arrays in Statistica Visual Basic Functions
- Declaring a Variable
To declare a variable in STATISTICA Visual Basic use the keyword Dim as the following demonstrates: - Retrieving Lists of Strings in Statistica Visual Basic
- Placing Results in Workbooks, Reports, Etc., via the RouteOutput Method
- Importing Version 5.x STB Programs to Statistica Visual Basic (Technical Notes)
This topic contains information that may be useful for users of the translation utility distributed with the current version of Statistica to help convert the 5.x generation Statistica Visual Basic programs to Statistica Visual Basic. - Importing Version 5.x SCL Programs to Statistica Visual Basic (Technical Notes)
This topic contains information that may be useful for users of the translation utility distributed with the current version of Statistica to help convert the 5.x generation Statistica Command Language programs (SCL) to Statistica Visual Basic.
Copyright © 2021. Cloud Software Group, Inc. All Rights Reserved.