Delete
bool CFormResult::Delete( int result_id, string check_rights = "Y" )
The method Delete deletes the specified result. Returns true on success, and false otherwise. Non-static method.
Parameters
Parameter | Description |
---|---|
result_id | ID of the result. |
check_rights | If set to "Y", current user access permissions must be checked. The following values are possible:
|
See Also
Examples
<? $RESULT_ID = 189; // result ID // delete the result with the current user access permission check if (CFormResult::Delete($RESULT_ID)) { echo "The # ".$RESULT_ID." successfully deleted."; } else // error { global $strError; echo $strError; } ?>
© «Bitrix24», 2001-2024