getRecord() { putMessage "Retrieving data record..." RECORD="" CNT_ANS="0" IFS="${FIELDDELIM:=|}" set -- ${1} IFS="${IFS_NORM}" for FIELD in "${@}" do CNT_ANS="$(( ${CNT_ANS} + 1 ))" ANS[${CNT_ANS}]="${FIELD}" done putMessage return ${CNT_ANS} }