spitzmuller
Programmer
Hi there
I am currently writing code to create a custom toolbar. At runtime, this toolbar will be populated with buttons - one for each open form - to give one-click access to all open forms.
For that i need to have the OnAction-Property call a function with an argument (the name of the button that was clicked).
I tried to use
.OnAction = "ShowForm('MainForm')"
where ShowForm is a function that brings to front the corresponding from
But it doesn't work: error: "can't run the macro or callback function". If I remove the argument from the function, it works, but I need the argument to know what button has been pressen.
I hope I can make myself clear...
Any Ideas? Thanks
I am currently writing code to create a custom toolbar. At runtime, this toolbar will be populated with buttons - one for each open form - to give one-click access to all open forms.
For that i need to have the OnAction-Property call a function with an argument (the name of the button that was clicked).
I tried to use
.OnAction = "ShowForm('MainForm')"
where ShowForm is a function that brings to front the corresponding from
But it doesn't work: error: "can't run the macro or callback function". If I remove the argument from the function, it works, but I need the argument to know what button has been pressen.
I hope I can make myself clear...
Any Ideas? Thanks