Command APPFIELD Foundation
Specifies a database field to be displayed in an Application Part.
APPFIELD <cFieldName> | <memvar> := <expression> ;
[ INTO <oApp> ] ;
[ TYPE <cType> ] ;
[ LEN <nLen> ] ;
[ DEC <nDec> ] ;
[ FONT <cFontCompoundName> ] ;
[ COLOR <nForeGround1> [, <nBackGround1>] ] ;
[ HILITE <nForeGround2> [, <nBackGround2>] ] ;
[ ALIGN LEFT | CENTER | RIGHT ] ;
[ WIDTH <nWidth> ] ;
[ READONLY ] ;
[ HEADING | CAPTION <cHeading> ;
[ FONT <cFontCompoundName> ] ;
[ COLOR <nForeGround> [, <nBackGround>] ] ;
[ ALIGN LEFT | CENTER | RIGHT> ] ;
] ;
[ FOOTING | COMMENT <cFooting> ;
[ FONT <cFontCompoundName> ] ;
[ COLOR <nForeGround> [, <nBackGround>] ] ;
[ ALIGN LEFT | CENTER | RIGHT ] ;
The APPFIELD command is used to configure the display of single fields in Application Parts in greater detail, compared to the available options of the APPEDIT or APPBROWSE command. In addition, APPFIELD allows to define an expression, rather than a field, whose result is displayed in an Application Part. This is coded as an assignment, where the inline assignment operator must be used to assign the result of an expression to a memory variable.
The APPFIELD command can only be used after a command that creates an Application part. For example, the command APPEDIT or APPBROWSE must be executed in a program before APPFIELD may be used. When an Application Part is displayed with APPDISPLAY, the APPFIELD command must not be used until the next Application Part is created.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.