SetPageFieldPageFieldName
Mon 01 January 2018Syntax
SetPageFieldPageFieldName(Page.PageName, Record.RecordName, Field.FieldName, PageFieldName)
Description
Use the SetPageFieldPageFieldName function to add or change a page field name for a field. The page field name is set on the General tab of the page field properties. Changing a name to itself is not supported.
The first field on the page with the specified record name and field name is the field that's changed.
Parameters
Field or Control |
Definition |
---|---|
PageName |
Specify the page containing the field you want to change. This name must be prefixed by the reserved word Page . |
RecordName |
Specify the record containing the field you want to change. This name must be prefixed by the reserved word Record . |
FieldName |
Specify the name of the field that you want to modify. This name must be prefixed by the reserved word Field . |
PageFieldName |
Specify the page field name that you want associated with the page field as a string. |
Returns
A constant value. The values are:
Value |
Description |
---|---|
%MDA_Success |
Function completed successfully. |
%MDA_Failure |
Function didn't complete successfully. |
%MDA_PageNotFound |
The specified page wasn't found. |
%MDA_PageFieldNotFound |
The specified field wasn't found on the specified page. |
%MDA_Duplicate |
A second field by the same name was found on the page. Only the first page field name was changed. |