DeleteRecordDefn function
Syntax
DeleteRecordDefn(record_name)
Description
The DeleteRecordDefn function drops the view and deletes the specified record definition.
Parameters
| Parameter | Description |
|---|---|
|
record_name |
Specifies the record definition to be deleted. |
Returns
An integer representing one of the following values:
| Numeric Value | Constant Value | Description |
|---|---|---|
|
0 |
%MDA_Success |
The record definition is deleted successfully. |
|
1 |
%MDA_Failed |
The record definition is not deleted. |
|
3 |
%MDA_NotFound |
The specified record doesn’t exist. |
|
4 |
%MDA_Unsupported |
The specified record is not created using the PeopleCode RecordDefn class. |
|
14 |
%MDA_NoWriteAccess |
The user doesn’t have write permissions to the record. |
|
16 |
%MDA_ViewNotDropped |
This value is returned if an error occurs while dropping a view. |
Related Topics