>When I add my own toolbar class to a form, a formset is created.If I want to refer to a Click event in the formset, I write :
>Formsetname.Toolbarname.Cmd1.Click
>
>When I create a coordinated Menu (coordinated menu&toolbar) exactly as it says in chapter 11 of the programmers guide, and try to get the menu work, ( I put a command Formsetname.Toolbarname.Cmd1.Click ), I get a message that Object Formsetname not found...
>
>I tried with _SCREEN.Activeform.Cmd1.Click, but the Cmd1 button is contained in the toolbar, which is contained in the formset, at the same level of the form, and Activeform refers to the Form, not the formset.
>Please help!!!
In that case that would have to be
_screen.activeform.parent.toolbarname.cmd1.click
Since you need to refer to the toolbar from the form, you have to address it through their common parent.
Though, most of the people here dislike formsets - you may be better off arranging the buttons into a container and dropping that on your form.