--- In [email protected], "Shawn K. Hall" <[EMAIL PROTECTED]> wrote:
> Hi Chris,
>  
> > Can you explain this simple phenomenon to me?
> 
> Sure. You're not 'clearing' the error.
> 

OH I didn't know about ERR.CLEAR!!!!

So, if I clear it, then it will not abort the program each iteration 
of the error, and the error report line will execute each time... 
thanks!!!

BTW to everyone else, that was just an example, not the actual code, 
but I learned something.  Err.Clear, and if there's a goto in the 
error handling routine it thinks it's still handling the error unless 
you clear it...  

I know you won't believe this, or tell me it's bad coding practice 
(which it is to a degree) but I have never really had to trap errors 
before, except for cancel on a dialog box or something like that.  
Usually in testing if I see an error I change the program to avoid 
it...  It would be a lot simpler if I could just disable the cancel 
button... Guess it's time to dig out the books on how to make custom 
controls for input boxes...

[C]










'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [email protected]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to