NIPO ODIN Version 5.17

*TEXTVARS

Purpose

Defines one or more text variables or arrays.

Syntax

*TEXTVARS <name>[,name2,...]

or

*TEXTVARS <name[size]>[,name2[size2],...]

Description

Defines text variables or one-dimensional text arrays. This command has to be at the beginning of the line. These text variables or arrays can be used throughout the entire questionnaire to store data or retrieve data. In text variables or arrays all alphanumerical data can be stored. A text variable or array initially is empty.

Note:
For technical reasons it is not possible to use variables which name start with an L.
System variables do not need to be defined.

Arguments

name
The name of the variable or array. Multiple variables or arrays can be created with a single *TEXTVARS command by including additional variable or array names separated by commas (Name2, Name3, and so on).

size
Specifies the size of the array to be created. Only one-dimensional arrays are supported. The variable will contain the specified amount of rows: you have created size variables with the same name.

Example

*TEXTVARS UHELP[2]
*QUESTION 2 *ALPHA 151L20 *SAVE UHELP[1]
What is the name of the oldest child?

*QUESTION 3 *ALPHA 171L20 *SAVE UHELP[2]
What is the name of the second oldest child?

*PAGE
The oldest child is named *? UHELP[1]
The second oldest child is named *? UHELP[2]

See Also