mrScriptBasic overview
mrScriptBasic is a programming language that enables scriptable access to UNICOM Intelligence components. mrScriptBasic makes it easy to script questionnaire logic and survey data cleaning routines.
mrScriptBasic is based on Visual Basic and Visual Basic Scripting Edition (VBScript). mrScriptBasic also supports the following features which are designed for use with market research data.
Categorical variables
Market research data typically contains case data collected using categorical questions. These are questions that have a predefined list of responses or categories from which the respondent selects their answer. Like the UNICOM Intelligence Data Model, mrScriptBasic supports data of this type.
Expression evaluation on categorical variables
Expression evaluation in mrScriptBasic is performed by the Evaluate component, which is part of the UNICOM Intelligence Data Model and which provides support for using
Arithmetic operators and
Comparison operators on categorical data.
Functions tailored to the needs of the market research industry
mrScriptBasic uses the UNICOM Intelligence Function Library, which is also part of the UNICOM Intelligence Data Model, and which includes many functions that can operate on categorical data. The function library is extensible and it is easy to add your own functions. For more information, see
UNICOM Intelligence Function Library.
Sections
mrScriptBasic can contain sections to group a series of sections together. For more information, see
Section.
Enhanced object collection iteration
Special mrScriptBasic syntax enables you to specify a categorical value when iterating through an object collection. This provides a concise syntax that meets the needs of the market research industry. For more information, see
Object collection iteration.
Dynamic property expansion
This feature enables you to access items in certain object collections as if they were a property of the collection object. For an example of using this feature in table scripting, see
Dynamic property expansion.
Enhanced error handling
mrScriptBasic supports the
On Error Goto statement and an enhanced
Err object, which can return the line number in the script where an error occurred. For more information, see
On Error.
Value stack and Variable collection
mrScriptBasic provides programmatic access to a Value Stack and Variables collection, which expose the state of a script’s variables at any given instruction. UNICOM Intelligence is planning to use these features in a future release of UNICOM Intelligence Interviewer to re-start or roll-back an interview without having to replay the interview from the start.
See also