Create New Document - Macro Tab
Select the Macro
tab of the Create
New Document dialog box to access options to create a new macro
file (*.svb).
For more details on macros and how they are used in Statistica, see the
Macro
Overview.
Name
Type a name for the new macro in the Name box. Macro names can contain alphanumeric
characters as well as various other characters ( ?, #, $, ...). You must
enter some name in this box before Statistica will create the macro.
Macro Type
Click the Macro
Type button to display the Macro Type dialog box.
Description
Type
a detailed description of the macro's purpose, behavior, and any other
pertinent information in the Description
box. For example, you may want to describe what its uses are and who created
it. Note that entering text in this box is optional.
Scripting language
Select the scripting (programming) language
you want to use for the new macro from the Scripting
language list. The following are the supported scripting languages:
Enhanced Statistica Visual Basic
This is a superset of Statistica Visual Basic,
the Visual Basic for Applications (VBA, TM) compatible scripting language.
It includes additional features that are not VBA compatible. The new features
are:
Data
Types: Decimal, SByte, UHuge_, UInteger,
and ULong
Conversion
Functions: CSByte, CUHuge_,
CUInt, and CULng
Operators:
AndAlso, IsNot, OrElse
Return
Instruction: Example: Return x from a function as an alternative
to FuncName = x.
Statistica Visual Basic
The Statistica library of classes and functions fully integrated with
the Visual Basic language.
Statistica Visual Basic.NET
This is a new scripting language that features Visual Basic.NET
(TM) compatibility. Using this language requires that you have the Microsoft
.NET Framework 2.0 installed on your system. This language features direct,
native access to .NET Assemblies, i.e. not through COM Interop as would
be required from standard SVB. When you add references to external assemblies
or libraries to a script via the Tools
- References menu, you can select .NET Assemblies or COM type libraries.
Complete documentation of this new language is available in the Help (press
F1 from a macro document window).
R (requires R Statistical Environment)
R is a language and environment for statistical computing and graphics
(available for download at no cost). Using this language requires that
you have R installed on either the same computer running Statistica or
a computer accessible from the Statistica server. If you do not have R
installed, please visit the Comprehensive
R Archive Network (CRAN) website.
For more information, select R Integration with Statistica
from the Help menu or
tab.
Force variables to be defined (Option Explicit)
Select this check box to force all variables
to be explicitly declared prior to using them. By default if a variable
is referenced without being declared, then Visual Basic will implicitly
create the variable of type variant.
Select the Force variables to be defined
(Option Explicit) check box to disable this feature. See Declaring
a Variable for further details about variable declarations.
Array indices start at one (Option Base 1)
Select this check box to force all of your
arrays to begin indexing at one, rather than zero. See also, Array
Indexing.
Include Statistica BASIC Library
Select this check box to include the Statistica Basic analysis, graph, and
matrix libraries into the macro.