Posted 24 December 2012 - 05:58 AM
Hello.
I don't really know how to describe this problem but I'll do my best.
I'm currently trying to make a button API (I'M AWARE THAT THERE ARE ALREADY TONNES OF THEM ON THE FORUMS) which stores all buttons in a table called tButton. The buttons are tables themselves. The problem I'm facing is that in the API there is a function called init(), which initializes tButton.
On one of my computers the 'startup' program loads the API.
Another program utilizes this API.
Now my question is: how do I change or 'reach' (I don't know a better word) the variable tButton or any of the buttons (tables) in it?
For example:
where x is a variable in the first table in the table tButton (tableception?).
Because doing so will throw an error and tButton doesn't exist and stuff.
I would greatly appreciate a quick response or even a response at all.
Thanks in advance!
InputUsername
I don't really know how to describe this problem but I'll do my best.
I'm currently trying to make a button API (I'M AWARE THAT THERE ARE ALREADY TONNES OF THEM ON THE FORUMS) which stores all buttons in a table called tButton. The buttons are tables themselves. The problem I'm facing is that in the API there is a function called init(), which initializes tButton.
On one of my computers the 'startup' program loads the API.
Another program utilizes this API.
Now my question is: how do I change or 'reach' (I don't know a better word) the variable tButton or any of the buttons (tables) in it?
For example:
print( tButton[1].x )
where x is a variable in the first table in the table tButton (tableception?).
Because doing so will throw an error and tButton doesn't exist and stuff.
I would greatly appreciate a quick response or even a response at all.
Thanks in advance!
InputUsername