I tried 'wait' while thrashing around. In that instance, it held execution until I selected an item on a list but then returned control to the main program while bypassing an 'OK' button. So wait statements seem to require more handling code which means the choice might be between some improvement in program-flow readability and addition of handler code.
I suppose it all depends on what needs to be accomplished. My problem occurred in a small form used as part of the launch phase of an otherwise GUI-less data computation system. But I've done other systems with many pop-up forms -- these are manipulated by form- related handlers, the basic system merely setting up the master form from which pop-ups are invoked by the user. Donald On May 3, 2010, at 2:14 PM, Dan Bron wrote: > Donald Pittenger wrote: >> the form popped up, but program control immediately >> reverted to the invoking program > > You can use wd 'wait' to suspend processing until a wd event > occurs. Take a look at wdselect_z_ (just type that into the IJX > window) for a good example. Particularly the while. 1 do. loop > at the end. > > -Dan > > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
