Function Row() Foundation

Determines the screen row where the cursor is currently located.

Syntax
Row() --> nRow
Return

Row() returns an integer numeric value in the range of zero to MaxRow() indicating the screen row where the cursor is found.

Description

The screen function Row() indicates the row where the cursor is located. The internal variable whose value is returned by the function Row() is changed by all screen oriented output functions and commands, except the function RestScreen().

The function Row() resembles the function PRow() which returns the current position of the print head.

Examples
Row()
// In this example, the field structure of a DBF file 
// is listed using the function Row() 

PROCEDURE Main 
   LOCAL aStruct, n 
   CLS 
   USE Address NEW 
   aStruct := DbStruct() 

   FOR n:=1 TO FCount() 
      @ Row()+1, 0     SAY PadR(aStruct[n,1],11) 
      @ Row()  , Col() SAY PadR(aStruct[n,2], 2) 
      @ Row()  , Col() SAY PadL(aStruct[n,3], 3) 
      @ Row()  , Col() SAY PadL(aStruct[n,4], 3) 
   NEXT 

   USE 
RETURN 

Feedback

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.