Widget onRelease parameter

I need to set the onRelease parameter for the widget button from a string in a table (using it in a multi-language project). Is there a way to do what I am trying to do below?

 butbuy = widget.newButton {   
 id = "butbuy",   
 default = imgDir.. tSearch["butbuy"][1],   
 over = imgDir.. tSearch["butbuy"][6],   
 width = tSearch["butbuy"][2], height = tSearch["butbuy"][3],   
 onRelease = tSearch["butbuy"][7]   
 }   

Currently I am getting the follow error message:
…Users/mac/Documents/K2/CandiceMulti/build/page_2.lua:102: attempt to call field ‘?’ (a string value)
stack traceback

I have tried to write the string in the table like this “callAction”, or this callAction (without the quotes) but nothing seems to work…

Any help will be more than welcomed.
Thanks! [import]uid: 4883 topic_id: 28910 reply_id: 328910[/import]

Sorry I don’t understand what you are trying to do? Set the buttons label to a string from a table? [import]uid: 84637 topic_id: 28910 reply_id: 116448[/import]

Hey Danny,

No, I have a table that sends parameters to the widget. So, instead of “hard code”

...  
onRelease = myFunction  
--  

I need something like this:

[code]
myTable = {“myFunction”}



onRelease = myTable[1]

[/code]

Got it? [import]uid: 4883 topic_id: 28910 reply_id: 116449[/import]

I’m still a little confused…so myTable[1] is a function? [import]uid: 84637 topic_id: 28910 reply_id: 116450[/import]

myTable[1] should be the name of the function to be called. [import]uid: 4883 topic_id: 28910 reply_id: 116590[/import]

Danny, did you understand my issue? Any suggestions? [import]uid: 4883 topic_id: 28910 reply_id: 117209[/import]