I have dynamically created menu items and what I did was create a function, mf_callitem(string a_sTag) for example, then I just created an invisible menu item and in it's clicked script, put mf_callitem(this.tag). Whenever I create a new menu item, I use the CREATE USING command to create the new item from my invisible item and then I give the new item a unique tag and set its other properties. After doing all this, mf_callitem will be called with the appropriate tag parameter each time one of these dynamically created items is "clicked".