Professional > Interview scripting > Writing interview scripts > Events > OnBeforeQuestionAsk event
 
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.
Refer to Paradata example script for an example of using OnBeforeQuestionAsk to write data collection information about each question in the interview to a database.
See also
Displaying a summary of answers at the end of the interview
Events