RemoveField method: RecordDefn class
Syntax
RemoveField({n | field_name})
Description
Use this method to remove a field from a record.
Parameters
| Parameter | Description |
|---|---|
|
n | field_name |
Specifies the field to be removed. This method takes the type as Any. |
Returns
An integer representing the following statuses.
| Numeric Value | Constant | Description |
|---|---|---|
|
0 |
%MDA_Success |
The field is removed successfully. |
|
1 |
%MDA_Failed |
The field is not removed. |
Example
&returnValue = &myNewRecord.RemoveField("MYNEWFIELD");