Sorry, "ideal" is a bad term ... "memory consuming" might be a better term. I very rarely declare my dialogs as function local only because its a pain-in-the-ass to code around - only suitable for very simple dialogs. Mostly declare global in the main script, plus that would probably not show any memory leak as readily as this pop-and-dispose sample would.

[ 07. November 2002, 16:24: Message edited by: Shawn ]