--- loncom/homework/hint.pm 2003/06/20 04:18:49 1.44 +++ loncom/homework/hint.pm 2003/06/24 20:41:56 1.45 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # implements the tags that control the hints # -# $Id: hint.pm,v 1.44 2003/06/20 04:18:49 albertel Exp $ +# $Id: hint.pm,v 1.45 2003/06/24 20:41:56 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -166,6 +166,10 @@ sub end_numericalhint { $expression.=';my $type="float";'; } $expression.="');"; + my @answer=&Apache::lonxml::get_param_var('answer',$parstack,$safeeval); + &Apache::lonxml::debug('answer is'.join(':',@answer)); + @{$safeeval->varglob('CAPARESPONSE_CHECK_LIST_answer')}=@answer; + $result = &Apache::run::run($expression,$safeeval); &Apache::lonxml::debug("$expression:result:$result:$Apache::lonxml::curdepth"); my ($awards) = split /:/ , $result;