Runtime.ObjectRefs

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aRuntime.ObjectRefs(Index as Integer)

Supported for all project types and targets.

ObjectRefs returns the number of references to the passed object.

Notes

It Takes ObjectNumber as its parameter, where ObjectNumber is greater than or equal to zero and less than ObjectCount.