FORMform-itemHEADER BACKGROUND head-itemframe-phrase
FORM record EXCEPT field frame-phraseThis is the syntax for form-item:
field format-phrase
constant
at-phrase TO nBGCOLOR expressionDCOLOR expressionFGCOLOR expressionFONT expressionPFCOLOR expressionVIEW-AS TEXTWIDGET-ID id-number
SPACE ( n )
SKIP ( n )Specifies one or more frame attributes for a field or variable. For more information on format-phrase, see the Format phrase reference entry.
AT nCOLUMN column COLUMN-OF relative-positionROW row ROW-OF relative-positionCOLON-ALIGNED LEFT-ALIGNED RIGHT-ALIGNEDX x X-OF relative-positionY y Y-OF relative-positionCOLON-ALIGNED LEFT-ALIGNED RIGHT-ALIGNEDFor more information, see the AT phrase reference entry.TO nThe number (n) of the column in which you want the display to end. The TO option does not right justify the data; it simply indicates the placement of the data area.BGCOLOR expressionDCOLOR expressionFGCOLOR expressionFONT expressionPFCOLOR expressionWIDGET-ID id-numberSpecifies a widget ID for a field-level widget or value to display in a frame. The value of id-number must be an expression that evaluates to an even integer value between 2 and 65534, inclusive, and must be unique across all widget IDs in the window or dialog box.SPACE ( n )Identifies the number (n) of blank spaces to insert after the displayed expression. The n can be 0. If the number of spaces you specify is more than the spaces left on the current line of the frame, the AVM starts a new line and discards extra spaces. If you do not use this option or you do not use n, the AVM inserts one space between items in the frame.SKIP ( n )Identifies the number (n) of blank lines to insert after the displayed expression. The number of blank lines can be can be 0. If you do not use this option, the AVM does not skip a line between expressions unless the expressions do not fit on one line. If you use the SKIP option but do not specify n, or if n is 0, the AVM starts a new line unless it is already at the beginning of a new line.EXCEPT field . . .
expression format-phrase
constant
at-phrase TO nBGCOLOR expressionDCOLOR expressionFGCOLOR expressionFONT expressionVIEW-AS TEXTWIDGET-ID id-number
SPACE ( n )
SKIP ( n )This is exactly the same as the syntax for a form-item, except that a head-item can be an expression and does not include the PFCOLOR option. If you use an expression in a HEADER or BACKGROUND phrase, the expression is evaluated each time the frame is viewed. If you give the PAGE-TOP or PAGE-BOTTOM option for the frame, the expression is evaluated for each page. This allows you, for example, to include a reference to the PAGE-NUMBER function in the frame header.
Note: If head-item is an expression, any option of the format-phrase may be used with it; if head-item is a constant, only the AT phrase, TO, BGCOLOR, DCOLOR, FGCOLOR, FONT, VIEW-AS TEXT, and WIDGET-ID options are allowed.Specifies frame options for the frame associated with the FORM statement. For more information on frame-phrase options, see the Frame phrase reference entry.
DEFINE VARIABLE ix AS INTEGER NO-UNDO FORMAT ">9".FORM HEADER "This is the header - ix is" ix
WITH FRAME a ROW ix COLUMN ix ix DOWN.
DO ix = 1 TO 8 WITH FRAME aDISPLAY ix.PAUSE.END.
DEFINE VARIABLE ix AS INTEGER NO-UNDO FORMAT ">9".FORM HEADER "This is the header - ix is" ix
WITH FRAME a ROW ix COLUMN ix ix DOWN.
DO ix = 1 TO 8 WITH FRAME a:DISPLAY ix.HIDE FRAME a.END.
If you have enabled application-defined widget IDs in your ABL GUI application, by specifying the Use Widget ID (–usewidgetid) startup parameter, then the AVM uses the value specified in the WIDGET-ID option to set the WIDGET-ID attribute for this widget when it creates the widget at run time, instead of using the widget ID it normally generates by default. If you have not enabled application-defined widget IDs, then the AVM ignores this option setting at run time.For more information about the WIDGET-ID attribute, see its reference entry in the “Handle Attributes and Methods Reference” section. For more information about the Use Widget ID (–usewidgetid) startup parameter, see OpenEdge Deployment: Startup Command and Parameter Reference.
If you use a single qualified identifier with the FORM statement, the compiler first interprets the reference as dbname.tablename. If the compiler cannot resolve the reference as dbname.tablename, it tries to resolve it as tablename.fieldname. When naming fields in a FORM statement, you must use table names that are different from field names to avoid ambiguous references. See the Record phrase reference entry for more information.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |