concatenate table ref in string?

hi,

this gives me an error, what is the correct syntax please?

[lua]obj1 = {1,2,3}
print(“obj1=”…obj1) – eg obj1=table: 0x631060[/lua]

a , works instead of … but it adds extra padding.

Note I want to show the actual table hex ref eg 0x631060

thanks
j [import]uid: 6645 topic_id: 3468 reply_id: 303468[/import]

Since you are concatenating a string and an object, you need to cast the table ref as a string first…

So:

[code]
obj1 = {1,2,3}
print(“obj1=”…tostring(obj1)) – eg obj1=table: 0x631060

[import]uid: 8444 topic_id: 3468 reply_id: 10420[/import]

Hey firemaplegames, you porting danger cats to android then :wink:

Thanks I will check that but note I’m trying to return the address reference not the contents [import]uid: 6645 topic_id: 3468 reply_id: 10426[/import]

Hey!

I am porting my current game over to Android. I will see how that one does first! If that does well, i will port over Danger Cats! too.

I am pretty sure that the above code will give you the reference to the table, not the contents [import]uid: 8444 topic_id: 3468 reply_id: 10441[/import]

thanks you’re right, that works… i must have just tried it every other way with no success :wink:

always impressed with your GS stuff and just seen Grisly Manor is #17 overall on the app store!..looking forward to see what you can get out of corona next :slight_smile:

regards
j [import]uid: 6645 topic_id: 3468 reply_id: 10443[/import]