Runtime.ObjectID

From Xojo Documentation

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

Supported for all project types and targets.

ObjectID returns a unique identifier for the passed object.

Notes

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