MathGroup Archive 2006

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

Search the Archive

Re: Check[] vs Off[] ?

  • To: mathgroup at
  • Subject: [mg67221] Re: Check[] vs Off[] ?
  • From: dh <dh at>
  • Date: Tue, 13 Jun 2006 01:07:09 -0400 (EDT)
  • References: <e6ge2h$nhn$>
  • Sender: owner-wri-mathgroup at

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;


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.