Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## FRAME-COL function

> Returns a decimal value that is the column position of the left corner of a frame within its window.

> Note: Does not apply to SpeedScript programming.

> #### Syntax

>     FRAME-COL [ ( frame ) ]

> ``frame``

> The name of the frame whose column position you are trying to determine. If you do not supply a frame name, the FRAME-COL function uses the default frame for the block it is in. If the FRAME-COL function is in a DO block, the function uses the default frame scoped to the block containing the DO block.

> Example

> This procedure displays customer information in one frame, then displays order information in an overlay frame. FRAME-ROW places the overlay frame on the ninth row of the second column. FRAME-COL places the overlay frame on the first column of the first frame.

> r-frcol.p
>     FOR EACH customer:
>        DISPLAY customer WITH FRAME cust-frame 2 COLUMNS
>          TITLE "CUSTOMER INFORMATION".
>        FOR EACH order OF customer:
>            DISPLAY order-num order-date ship-date promise-date carrier
>                    instructions po
>              WITH 2 COLUMNS 1 DOWN OVERLAY TITLE "CUSTOMER’S ORDERS"
>              ROW FRAME-ROW(cust-frame) + 8
>              COLUMN FRAME-COL(cust-frame) + 1.
>        END.
>     END.

> #### Notes

> - The FRAME-COL function returns a value of 0 if the frame you specify is not in view when Progress evaluates the function.

> - To convert the decimal value returned by FRAME-COL to an integer value, use the INTEGER function.

> #### See also

> Frame phrase, FRAME-DOWN function, FRAME-LINE function, FRAME-ROW function, INTEGER function

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095