NIPO ODIN Version 5.17

*BUT

Purpose

Defines a button.

Syntax

*BUT <code> <"text">

Description

With this command you create user-defined buttons which are displayed during the interview. These buttons can be used instead of or next to answer categories. If you click on the button the relating code is written.

Arguments

code
This is the code that is stored when pressing the button.

text
This is the button text.

Remarks

  • A maximum of five buttons per question is allowed.
  • When using buttons on a *FORM question the value of the buttons is stored in the first field of the form question.

Example

*QUESTION 1 *CODES 61 *BUT 5 "Don't know"
How often do you read a newspaper?

1: Daily
2: Once a week
3: Once a month
4: Never

In this example, the category for ‘Don’t know’ is left out of the category list. Instead a button is defined to enter this answer:

Result:

Embedded PNG Image Template (Styled)

Example 2

*QUESTION 1 *FORM *BUT 99 "Refusal"
Please, fill in your name and address:

1:Name : *ALPHA 73L30

2:Street: *ALPHA 103L40

3:Place : *ALPHA 143L20

Result:

Embedded PNG Image Template (Styled)

If the Refusal button is used, the code 99 is stored in the first field (Name).

See Also