setvalueset function on alpha field with check box
Posted: September 11th, 2011, 10:45 am
I would like to use the "setvalueset" function on an Alpha field with multiple answer (check box), is that possible?
So far, my best try was with the code below. The problem is that check box window turns to a drop down window when answer is "3" (but stays as a check box with answer "2")
Thank you
**********************************************
PROC Q35_CONSEIL
preproc
if Q34_ORIENTGDC = 2 then;
setvalueset(Q35_CONSEIL, Q35_CONSEIL_VS1);
elseif Q34_ORIENTGDC = 3 then;
setvalueset(Q35_CONSEIL, Q35_CONSEIL_VS2);
else skip to Q36_AUTRDEM
endif;
set attributes(Q35_CONSEIL) assisted on;
So far, my best try was with the code below. The problem is that check box window turns to a drop down window when answer is "3" (but stays as a check box with answer "2")
Thank you
**********************************************
PROC Q35_CONSEIL
preproc
if Q34_ORIENTGDC = 2 then;
setvalueset(Q35_CONSEIL, Q35_CONSEIL_VS1);
elseif Q34_ORIENTGDC = 3 then;
setvalueset(Q35_CONSEIL, Q35_CONSEIL_VS2);
else skip to Q36_AUTRDEM
endif;
set attributes(Q35_CONSEIL) assisted on;