randomin

Discussions about CSEntry
Post Reply
Mr.sharipov
Posts: 12
Joined: March 31st, 2016, 3:30 am

randomin

Post 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;
jfigueroa
Posts: 100
Joined: August 28th, 2014, 12:46 pm

Re: randomin

Post 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.
Post Reply