Command PV GET CURRENT CELL

4D View

PV GET CURRENT CELL

version 6.8


PV GET CURRENT CELL (area; column; row)

ParameterTypeDescription
areaLongint4D View area
columnLongintActive cell column number
rowLongintActive cell row number

Description

The PV GET CURRENT CELL command returns the coordinates of the current cell of area in the column and row parameters.

Example

Starting from the object callback of a button, display the string "Here" in the current cell.

   C_LONGINT($Column;$Row)  `To get coordinates

   PV GET CURRENT CELL (Area;$Column;$Row)  `Cell coordinates

   If ($Column#0) & ($Row#0)  `There is a cell selected
      PV SET CELL STRING VALUE (Area;$Column;$Row;"Here")  `This cell currently contains "Here"
   End if 

See Also

PV GOTO NEXT CELL, PV VALIDATE CURRENT CELL.