Command PV VALIDATE CURRENT CELL

4D View

PV VALIDATE CURRENT CELL

version 6.8


PV VALIDATE CURRENT CELL (area)

ParameterTypeDescription
areaLongint4D View area

Description

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.