OnDeltaPos - DfBaseObject

Provides actions based on the amount of change in this object and/or its value at the point the focus is moved off it

Type: Event

Return Data Type: Integer

Parameters: Integer iItem Integer iChange

ParameterDescription
iItemThe item number
iChange A folded integer defined as follows:

Low (iChange) The original value
Hi (iChange) The amount of change


Return Value

If a non-zero value is returned, the change will not take place


Syntax
Procedure OnDeltaPos Integer iItem Integer iChange Returns Integer

Description

The OnDeltaPos event message has no definition by default. It can be used to provide actions based on the amount of change in this object (from the time it took the focus) and/or its value at the point the focus is moved off it. Its value at the time of taking focus is (low(iChange)). The amount of change made by users is (hi(iChange)), which may be negative.

If you define this procedure to return any non-zero value, the change will not take place. If your procedure does not execute a procedure_return, the change will take place.

See Also

Folded Integer