vfoGRCompareParams
vfoGRCompareParams(
g_obj
d_inst1
d_inst2
)
=> t / nil
Description
Checks the equality of FGR instances. You override this function and can define its new equality for FGR instances. By default, it checks the value of the following parameters: verticalPitch, horizontalPitch, verticalSegWidth, and horizontalSegWidth. This function is called by the Merge command. For the Merge command to succeed, this function should return t for the two FGR instances being compared.
Arguments
|
An instance of the |
|
|
The database ID of the two FGR instances that need to be compared. |
Value Returned
Example
defmethod(vfoGRCompareParams
((obj vfoAdvGuardRing) inst1 inst2)
let(()
if( ((vfoGetParam(inst1 "verticalPitch") ==
vfoGetParam(inst2 "verticalPitch")) &&
(vfoGetParam(inst1 "horizontalPitch") ==
vfoGetParam(inst2 "horizontalPitch")) &&
(vfoGetParam(inst1 "horizontalSegWidth") ==
vfoGetParam(inst2 "horizontalSegWidth")) &&
(vfoGetParam(inst1 "verticalSegWidth") ==
vfoGetParam(inst2 "verticalSegWidth"))) t nil)
)
)
Return to top