DeleteFieldDefn function

Syntax

DeleteFieldDefn(field_name)

Description

The DeleteFieldDefn function deletes the specified field.

Parameters

Parameter Description

field_name

Specify a field to be deleted.

Returns

An integer representing the following values:

Numeric Value Constant Description

0

%MDA_Success

The specified field is deleted successfully.

1

%MDA_Failed

The specified field is not deleted.

3

%MDA_NotFound

The specified field doesn’t exist.

4

%MDA_Unsupported

The specified field is not created using the PeopleCode FieldDefn class.

13

%MDA_FieldOnRecord

The specified field is used on a record definition.

14

%MDA_NoWriteAccess

The user doesn’t have write permissions to the field.