Page 1 of 1

randomin

Posted: October 21st, 2016, 5:55 am
by Mr.sharipov
how to make sure that the value question1 not changed after the first assignment?
example
numerik well;
a = rondomin (50,70,90);
if demode()=1 then
question1 = a;endif;

Re: randomin

Posted: October 21st, 2016, 5:18 pm
by jfigueroa
Hi Mr.sharipov,

You can use:

Code: Select all

Proc QUESTION1

Preproc
If demode() <> 1 Then
	set attributes (question1) protect;
EndIf;
That way, the interviewer wont be able to change the question value after ending the case (modify or verify mode).
For more information search about Set Attributes Statement at CSPro help.
Regards.