Progress
Language Reference


FRAME-ROW Function

Interfaces
OS
SpeedScript
All
All
No

Returns a decimal value that represents the row position of the upper-left corner of a frame within its window.

SYNTAX

FRAME-ROW [ ( frame ) ] 

frame

The name of the frame whose row position you are trying to determine. If you do not supply a frame name, the FRAME-ROW function uses the default frame for the block that contains the FRAME-ROW function. If the FRAME-ROW function is in a DO block, the function uses the default frame scoped to the block that contains the DO block.

EXAMPLE

This procedure displays customer information in one frame, then displays order information for the customer in a second frame that overlays the first. FRAME-ROW and FRAME-COL control the placement of the overlay frame. FRAME-ROW places the overlay frame on the eighth row of the first frame. FRAME-COL places the overlay frame on the first column of the first frame.

r-frrow.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
            instruction 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. 

NOTE

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

SEE ALSO

Frame Phrase, FRAME-COL Function, FRAME-DOWN Function, FRAME-LINE Function, INTEGER Function


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