bool CFormAnswer::Delete( int answer_id, int question_id = false, )
The method Delete deletes an answer and all result values bound to it. Returns true on success, or false otherwise.
Parameter | Description |
---|---|
answer_id | The ID of the answer to be deleted. |
question_id | The ID of the question to
which the deleted answer is
bound. If specified, the parameter will speed up the method execution. Optional. False by default. |
<? $answer_id = 589; // The answer ID // delete the answer if (CFormAnswer::Delete($answer_id)) { echo "The answer #589 is deleted."; } else { // display the error description global $strError; echo $strError; } ?>
© 2001-2005 Bitrix | Bitrix Site Manager |