Hi, You will need to do a with-db in each callback, because of what you describe; open-window does not preserve the current dynamic scope and run callbacks with that.
Slava On Fri, Jan 30, 2009 at 5:02 PM, Ben Schlingelhof <[email protected]> wrote: > Hello, > > I want to open a db connection via with-db and use that in various > commands in an user interface. Problem: When I call a word that > creates a user interface (via open-window) within a with-scope > (with-variable, with-db, whatever), the scope seems to be lost in the > callbacks from the UI. What is the right way to do this? > > Ben > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
