I have a set of buttons created dynamically at runtime from database records, these combine to make a switchboard type selection. Each button has a unique caption which is in fact a speaking key to the user amd the data base. I have assigned the same onclick procedure to every button. My question is how do I retrieve the button caption from within the onclick event? I thought I would get it from the sender object but this appears to be empty. Also how do I ensure that all the buttons are destroyed when the user changes switchboards. Thanks.