WRDEntity2017::IsReferenced (open)

Is the entity referenced?

Syntax

LOADLIB "mod::wrd/lib/internal/wrdentity.whlib";

BOOLEAN FUNCTION IsReferenced()

Return value

BOOLEAN

TRUE if a reference to this entity exists

Description

Check whether any entity refers to this one, including historical references. This function is mainly intended as a 'safe to delete' check. Events, registry entries and direct self-references are ignored, but a circular reference (through another entity) is still counted as a reference.