[Resolved] Call a function from module

I would like to know how to call a function from an external module, as in ‘ui.lua’ when the button’s press becomes the specified function. However, I don’t have an event like that. I’d like to be able to do something like this in the module:

local function doAFunction(myFunction)  
 if (myFunction and type(myFunction)=="function" then  
 local myFunc=myFunction  
 end  
myFunc()  
end  

binc [import]uid: 147322 topic_id: 28307 reply_id: 328307[/import]

Ha ha ha! That was how you did it! I just tried to make an example and I got it right. [import]uid: 147322 topic_id: 28307 reply_id: 114344[/import]