In some cases function receives msg (buttons).
Since i want to know what variables i have been sending, I am using:
Code: Select all
ForEach(msg.userdata,
Function(index, value)
tempstring$ = tempstring$..index.." = "..value
EndFunction)
WriteString(1, tempstring$)
I have already made a workaround for it, but because this situation is in many different places of code, my solution isnt quite optional.
What I would like to happen is what happens with debugprint.
If i use debugprint(VarA.." / "..VarB)
Then if VarB is a table, debugprint prints out its address.
Is there any simple way to be able to fix my problem so that it would be putting that address instead? That is there for example some command where i can add to string some stuff in such way that it automatically understands to put tables addressess as part of that string instead of failing?
in style of for example:
Code: Select all
a = a + 1
Code: Select all
a = Add(a, 1)