Runtime.ObjectID
From Xojo Documentation
Read-Only Property (As Integer )
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.