Re: color of strings



Jeremy Barry wrote:


A simple way is to use error instead of using disp.

help error

Jeremy

"Andrea Schmidt" <external.Andrea.Schmidt@xxxxxxxxxxxx> wrote
in
message
news:f33ooo$r4v$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I want to display a string in the command window without
stopping
the
loop,
if an error occured. My code in the loop is for example:

try
myexample( )
catch
disp('An error occured in myexample!')
end

That is ok, but I want change the color of the displayed
string.
It's
always
black, but I want it red. How can I change the color?

Thank you very much.





I have the same color control problem for which using function
error is not a solution: function error ends the current process and
returns control to the command window; disp is not so aggressive...
.



Relevant Pages

  • RE: Export all smtp addresses to .txt file
    ... Try running these dsquery commands to display output on screen. ... "Rob S" wrote: ... this will list user name and e-mail addresses in command window. ...
    (microsoft.public.windows.server.scripting)
  • Re: [opensuse] BASH - dialog and oldie but a goodie
    ... kdialog and gdialog have a common ... and not whether just "DISPLAY" is set. ... gcc $CFLAGS -lX11 -o Xruns Xruns.c ... Display* disp = NULL; ...
    (SuSE)
  • Re: GetDisputableInfo
    ... > What's the meaning of DISP in xxN_GETDISPINFO notifications? ... > I know they are the common controls' way of querying their parent ... "Retrieves display information for a toolbar item." ... "Sent by a ToolTip control to retrieve information needed to display a ...
    (microsoft.public.win32.programmer.ui)
  • Re: Error Display
    ... I know for> warning display, I can use 'warning off all',. ... > I intend to use the errordlg only, so I do not want the error to be> displayed in the command window. ... I do not know of any way to suppress the display of an errormessage. ...
    (comp.soft-sys.matlab)
  • Re: Cannot attach sharepoint databases
    ... Please run the following command in the command window: ... then it will display a notation 1>, ... Then, 2> will display, ... This posting is provided "AS IS" with no warranties, ...
    (microsoft.public.windows.server.sbs)