4D View v14

PV SET CELL VARIABLE

Home

 
4D View v14
PV SET CELL VARIABLE

PV SET CELL VARIABLE 


 

PV SET CELL VARIABLE ( area ; column ; row ; variable ) 
Parameter Type   Description
area  Longint in 4D View area
column  Longint in Cell column number
row  Longint in Cell row number
variable  String in Variable name

The PV SET CELL VARIABLE command links the cell set by column and row to a variable. Any modifications to the cell content will affect the variable and vice-versa.

Example  

The following form method displays the current time in cell C3 using the vTime variable. This variable is updated each second, such that the cell acts as a clock:

 C_TIME(vTime`Variable receiving displayed time
 
 Case of
    :(Form event=On Load)
       If(PV Get cell variable(Area;3;3)="") `Still no variable associated with C3
          PV SET CELL VARIABLE(Area;3;3;"vTime") `Associate the vTime variable
       End if
       SET TIMER(60) `Every second
 
    :(Form event=On Timer)
       vTime:=Current time
 End case

 
PROPERTIES 

Product: 4D View
Theme: PV Cell value
Number: 15919

 
HISTORY 

Created: 4D View 6.8

 
SEE ALSO 

PV ADD DYNAMIC ARRAYS
PV Get cell value type
PV Get cell variable
PV SET CELL FIELD

 
ARTICLE USAGE

4D View Language ( 4D View v11.4)
4D View Language ( 4D View v12)
4D View Language ( 4D v13)
4D View Language ( 4D View v14 R2)
4D View Language ( 4D View v14)
4D View Language ( 4D View v14 R3)
4D View Language ( 4D View v14 R4)