I am trying to write a program that handles various types of inventory, each type requiring a different method of handling. This means that I need three different parameters to keep them straight: the window type, the dialog event and he itemID, eg stock window, button click, add. I started by selecting the active window which sends the program to the proper dialog handler where the event and ID are acted on. but this seems to leave one parameter on the stack so when the program should hunker around HANDLEEVENTS it goes to doDialog instead, and messes things up. Any pointers will be appreciated. Stew