comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: how to suppres warning
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: how to suppres warning [message #62981 is a reply to message #62980] Wed, 22 October 2008 06:57 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Ingo von Borstel wrote:
> Hello,
>
> is there a way to suppress warnings like
> % Type conversion error: Unable to convert given STRING to Double.
> % Detected at: READ_TABLE 58 /home/ingo/idltools/read_table.pro
> in order to not spam the console entirely?

Ummm...but that's not a warning. It's an error.

When you see errors popping up, you fix your code.

> I'd rather have the programme
> issue one warning for the entire read process instead of one for each
> line of the table I'm reading...

You can use CATCH (I think) to do this, but one would assume that you would stop the
program at the very first error, fix your code, and then re-run.

> I've been looking through the docs, but it was my impression that the
> usage of on_error doesn't help...

Did I mention you should fix your code?

:o)

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: QUESTION: is there a command in idl which could clean up memory pieces?
Next Topic: ITK Interface

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:26:32 PDT 2025

Total time taken to generate the page: 0.00537 seconds