OnGetDummyGeneratorValue()

bool OnGetDummyGeneratorValue(inQuestionIndex, inIteration) 

Description

This call back allows you to alter the answers. It gets called for each question that the generator is generating data for. If you decide to manipulate the answer, you should return true. Otherwise, if you wish for the generator to randomly select, return false. Click here to learn more about the Dummy Data Generator 

Parameters

The following is a list of parameters the functions receives 

Parameter Type Description
inQuestionIndex Int The question index
inIteration Int The iteration Index

 

Return Type

bool

 

Example

function OnGetDummyGeneratorValue (inQuestionIndex, inIteration)
{

     var retVal = false;
     if (inQuestionIndex == QRef(16))
    {
         SetAnswer(16, 2);
         retVal = true;

     }
return retVal;
}

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.