$result = update_string_to_form($reportoutput, $thisformobjid, 'REPORTBODY') ; if (not defined $result) { die 'could not update report body on form'; } else { if ($result != 0) { die 'error updating report body on form.'; } }