Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Check[] vs Off[] ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67221] Re: Check[] vs Off[] ?
  • From: dh <dh at metrohm.ch>
  • Date: Tue, 13 Jun 2006 01:07:09 -0400 (EDT)
  • References: <e6ge2h$nhn$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,
Check work with messages, therefore, you can not switch of messages. 
What you can do is, to prevent messages beeing printed. This can e.g. be 
done by clearing the value of $Messages (do not forget to store away the 
content the old value of $Messages). $Messages is a list of streams to 
which messages are sent. E.g.:
oldmsg = $Messages; $Messages = {};
To reactivating message printing, you would then say:
$Messages= oldmsg;

Daniel

AES wrote:
> So, how can I suppress the printing of various error messages (like ones 
> that say some particular evaluation produced an indeterminate result), 
> while still using Check to replace the indeterminate (or otherwise 
> erroneous) result with a chosen symbol, for example in a Table?
> 
> For instance if evaluating myExpression sometimes produces an integer 
> and sometimes an indeterminate result, then using
> 
>    myResult = Check[myExpression, "*"]
> 
> helps make a Table column narrower than if it has to print out 
> "Indeterminate" for each indeterminate result.
> 


  • Prev by Date: Problems with the front end
  • Next by Date: Re: List manipulation question
  • Previous by thread: Re: Check[] vs Off[] ?
  • Next by thread: Some questions regarding loops and lists.