Re:



"Felipe Orihuela-Espina" <f.orihuela-
espina@xxxxxxxxxxxxxx> wrote in message <g64ec8
$3rt$1@xxxxxxxxxxxxxxxxxx>...
Hi there,

There is a function which yields a certain warning (I
know
the warning message id). I would like to catch that
warning
and wrap it into a warndlg. How can I "catch" warnings
in a
similar fashion to error handling with try catch?

I know how to deactivate to produce no output on the
command
window. What I do not know is how to detect when the
warning
has happened in order to "relaunch it" but wrapped in a
GUI
dialog box.

Thanks inadvance for any help...


maybe check the 'lastwarn' variable to see if it has been
set? i 'think' that would still work if you have disabled
output for that warning message.
.



Relevant Pages

  • Re: block/bsg.c
    ... uninitialized_vardoes not silence the warning, on my compiler: ... kernel_lb_addr ino; ... still yields ...
    (Linux-Kernel)
  • Re:
    ... There is a function which yields a certain warning (I know ... the warning message id). ... and wrap it into a warndlg. ...
    (comp.soft-sys.matlab)
  • "catching" warnings
    ... There is a function which yields a certain warning (I know ... the warning message id). ... and wrap it into a warndlg. ...
    (comp.soft-sys.matlab)
  • Re: Outlook 2002 SP3 ActiveX warning
    ... but I absolutely don't want to deactivate any security measure ... > this can be deactivated by a RegistryKey, but then you have a Security Flaw. ... >> I'm getting the following warning message when trying to paste from Word ... >> How can I track down what is actually causing this and remove it? ...
    (microsoft.public.outlook.interop)
  • Re: How to turn specific warnings off? What can be wrong?
    ... though warning returns a Warning Off message. ... I tried even using the string returned by lastwarn and still no success. ... "WARNING('OFF', 'MSGID') and WARNINGdisable and enable the display of any warning tagged with message identifier MSGID. ...
    (comp.soft-sys.matlab)