Options - Documents: Macros

In the Options dialog box, select the Macros tab (located under Documents) to access options to customize the macros used in Statistica. The specifications made on this tab will be used as the default operating conditions whenever you start Statistica.

Scripting. From this drop-down list, select a default script to use when creating macros. Select from:

Enhanced Statistica Visual Basic. 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 (e.g., 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. 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.

See the Macro Overview and the New Macro dialog box topic for more details.

Font. In the Font box and adjacent type size box, specify a font and type size to use in macro windows. Use the drop-down box to select the font and the adjacent type size box to enter or select a type size.

Enable Events. Select this check box to enable events. If this check box is cleared, events are disabled. See Statistica events for more information.

Default Color Scheme. Use the drop-down lists in the Default Color Scheme group box to change the default colors of your Statistica Visual Basic code. By default Statistica uses the same colors as Microsoft Visual Basic.

Reserved. Select the color for reserved code in this box. Reserved words are keywords within the Visual Basic language, such as For, XOR, and Function.

Extensions. Select the color for extensions code in this box. Extensions are Statistica extensions to the Visual Basic library and language. Examples of these include data types such as Workbook, Spreadsheet, and CommandBar, and member functions/properties such as AnalysisOption.HideOnDeselect and CaseWeight.Type.

Built In. Select the color for built in code in this box. Built in words are functions that are already built into the Visual Basic language and can be called directly. Examples of these are Round(), RGB(), and Shell().

Comments. Select the color for comments in this box. Comments are any text following either an apostrophe or the keyword REM up until the end of the current line. Comment text is readable to you, but it is not interpreted by Statistica while the macro is running.

Restore Defaults. Click this button to return the Statistica color scheme to its default values.

Type Library References. Use the options in this group box to manage the references used by your macro applications. This will enable you to control the libraries that will be included with every new macro. You can choose to include all of the Statistica libraries along with the libraries provided by Microsoft Office, or you could not include any libraries at all. Note that the number of references included within a macro will linearly affect the speed at which it opens, saves, and processes. For example, if you are planning to create small Visual Basic scripts that do not take advantage of Statistica's collection of functions, then not including any references may be recommended to maximum optimization.

Edit. Click this button to display the References dialog box, which is used to edit the list of type library references that each new macro has by default.

Restore Defaults. Click this button to restore the references to their original state (i.e., reverts to using only Statistica libraries).

Display warning when opening Statistica with event Macros enabled. Select this check box if you want to be warned when you open Statistica when event macros are enabled. See Statistica events for more information.

Display warning when opening a document with event Macros. Select this check box if you want to be warned when you open a document that contains event macros. See Statistica events for more information.

Do not display STB Import warning. Select this check box if you do not want to see a warning stating that imported Statistica Visual Basic programs may not work correctly when you import a program from an earlier version of Statistica.

Do not display SCL Import warning. Select this check box if you do not want to see a warning stating that imported SCL programs may not work correctly when you import an SCL program from an earlier version of Statistica.

Show references dialog when pasting macro text. Select this check box to specify that the Add Macro References dialog box will be displayed when pasting macro text. In this dialog box, you can specify whether to add the macro references from the source macro.