Calling convention: IsReasonChildOf(ParentID: Integer, ChildID: Integer): Boolean
Description: Tests whether one reason is a descendant of another reason.
Parameters:
ParentID: expected ancestor reason ID.
ChildID: reason ID to test.
Returns: True when the child belongs below the parent; otherwise False. Missing, NULL or unknown reasons also return False after displaying an error.
Availability: Default.
Example:
IsChild := IsReasonChildOf(ParentReasonID, ChildReasonID);