Ahhh, time for the Homer dope slap!  I knew that at one time, just not
today!

thanks Ron.

Chip





------------------------------

Chip Orange
Database Administrator
Florida Public Service Commission

chip.ora...@psc.state.fl.us
(850) 413-6314

 (Any opinions expressed are solely those of the author and do not
necessarily reflect those of the Florida Public Service Commission.)
 

> -----Original Message-----
> From: Ron Parker [mailto:r...@gwmicro.com] 
> Sent: Friday, July 10, 2009 3:08 PM
> To: gw-scripting@gwmicro.com
> Subject: Re: problem with event handlers losing access to 
> passed parameters
> 
> 
> OnClose and OnChildClose don't get Window objects.  They get 
> longs that 
> correspond to the Window.Handle property of the window that just went 
> away.  That's because the window is gone by the time you hear 
> about it, 
> so a Window object that referred to it would be invalid before it was 
> even created.
> 
> That's why you get Object Required: it's not an object; it's a number.
> 
> Chip Orange wrote:
> > Hi all,
> >  
> > I'm still ocasionally seeing a problem where an event 
> handler, such as 
> > one for the on close window event, is finding it doesn't 
> have access 
> > to the passed parameter (I get an object required error, I 
> thought the 
> > isValid field would just go false for a window object).
> >  
> > is there anything I can do about this other than protecting 
> the entire 
> > routine with on error resume next?
> >  
> > thanks.
> >  
> > Chip
> >  
> >  
> >  
> >
> >
> >
> > ------------------------------
> >
> > Chip Orange
> > Database Administrator
> > Florida Public Service Commission
> >
> > chip.ora...@psc.state.fl.us
> > (850) 413-6314
> >
> >  (Any opinions expressed are solely those of the author and do not 
> > necessarily reflect those of the Florida Public Service Commission.)
> >
> >  
> 
> 

Reply via email to