OnBeforeQuestionAsk event
The OnBeforeQuestionAsk event runs before a question is asked and can be used to set additional question properties or to track some aspect of the interview.
To define actions to be carried out before a question is asked, place the following statements in the routing section of the script:
Sub OnBeforeQuestionAsk(<question>, IOM)
<statements>
End Sub
where:
▪<question> represents the current question.
▪<statements> are interview scripting or mrScriptBasic statements that define the actions to be carried out.
▪IOM is the interview object. This gives the event access to all the properties and objects related to the interview.
For an example of using
OnBeforeQuestionAsk to write data collection information about each question in the interview to a database, see
Paradata example script.
See also