get ID of display object

Hi, is there a way to get he ID of a display object?
When I print the object to the terminal, it shows something like

table: 0x4bc8d0

I just want to get the "0x4bc8d0" as a string
thanks

Maybe something like: tableString = tostring(myObject)

thanks for the quick reply Tim!
I'm so dumb

No problem, if you want a human readable string rather than the table string, you could name the object like:

1
2
3
local myRectangle = display.newRect(0, 0, 150, 50)
myRectangle.name = "myName"
print(myRectangle.name)
views:1592 update:2011/9/30 9:15:39
corona forums © 2003-2011