getAnswer()
{
STATUS="0"
eval FUNCTION="\${M_${LABDAT}_${LTC}}"
if [[ "${FUNCTION}" = @(modify|config|delete) ]]
then
selectRecord "${1}"
STATUS="${?}"
return ${STATUS}
fi
CNT_ANS="0"
while (( ${CNT_ANS} < ${1} ))
do
CNT_ANS="$(( ${CNT_ANS} + 1 ))"
move "$(( 4 + ${CNT_ANS} ))" 46
refresh
ANS="$( getstr )"
eval ANS\[\${CNT_ANS}\]=\"${ANS}\"
done
return ${STATUS}
}