vfoPostChopCBHandler
vfoPostChopCBHandler
t_mode
S_callbackFunction
)
=> t / nil
Description
Registers or deregisters a user-defined callback function that is called after the chop command completes on an FGR instance. You can do post-processing on the edited FGR instance in the registered callback function.
The user callback function must be defined before calling the vfoPostChopCBHandler function to successfully register it as a callback function.
Arguments
|
Specifies mode to register or deregister a user-defined callback function. Valid values are: |
|
|
Name or function symbol of a user-defined callback function. |
Value Returned
|
The user callback function was registered or deregistered successfully. |
|
|
The user callback function could not be registered or deregistered. |
Examples
Registers the user-defined callback function fixOrigin for post-chop operation.
procedure(fixOrigin(inst)
print("callback to do any post-processing on the FGR instance")
)
vfoPostChopCBHandler("r" 'fixOrigin)
or
vfoPostChopCBHandler("r" "fixOrigin")
Deregisters the user-defined callback function fixOrigin for post-chop operation.
procedure(fixOrigin()
print("callback to do any post-processing on the FGR instance")
)
vfoPostChopCBHandler("d" 'fixOrigin)
or
vfoPostChopCBHandler("d" "fixOrigin")
Return to top