Re: scope of WHENEVER statement
Posted in 2000
Aaaargh! Please contact the IIUG and ask them to sort this out, I shouldn't be getting these emails, but I'm getting one every few minutes, I think from anyone and everyone who posts a message to IIUG, i.e.: spam. Dom --- a_blonde@mindless.com wrote: > ---- you wrote: > > If I have a WHENEVER statement somewhere else than > in main(), will it not > > catch SQL errors in main()? Will it catch all SQL > errors in functions (in > > functions...) called by the function in which it > was defined? > > The WHENEVER statement has nothing to do with logic > flow Dude. It is a compiler switch that is picked up > at compile time only. So if your WHENEVER was the > last one found in the lines of code before your > function, then that will be the condition in effect > for that function. But this is regardless of > function boundaries in your source file. > > AB > ---------------------------------------------------------------- > Get your free email from AltaVista at > http://altavista.iname.com > __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com