4D View v16

PV VALIDATE CURRENT CELL

Home

 
4D View v16
PV VALIDATE CURRENT CELL

PV VALIDATE CURRENT CELL 


 

PV VALIDATE CURRENT CELL ( area ) 
Parameter Type   Description
area  Longint in 4D View area

The PV VALIDATE CURRENT CELL command validates the contents of the current cell while in entry mode. The current cell remains the same.

This command can only be called from a callback method. For more information on callback methods, refer to the PV Area, Introduction section.

Example  

Start by installing the callback method EventMethod, which will be called on double click:

 PV ON EVENT(Area;pv on double clicked;"EventMethod")

This method intercepts the user's double-click:

  `EventMethod method
 C_LONGINT($1`4D View area reference
 C_LONGINT($2`Event
 C_LONGINT($3`Modifying key code
 C_LONGINT($4`Column number
 C_LONGINT($5`Row number
 C_LONGINT($6`Ascii code of the key
 C_BOOLEAN($0`Value to return
 
 $0:=False
 
 If($2=pv on double clicked`In case "EventMethod" will also be called for other events
    BEEP
    PV VALIDATE CURRENT CELL($1`Cell contents are validated
 End if



See also 

PV ON EVENT

 
PROPERTIES 

Product: 4D View
Theme: PV Current cell
Number: 15933

 
HISTORY 

Created: 4D View 6.8

 
ARTICLE USAGE

4D View Language ( 4D View v16)