Utilities/
report.pro
Like dialog_message.pro if there is already some widget
active or like message.pro if there is not any widget active.
To ask a question whose answer is not yes/no,use xquestion.
report
result = report(text, DEFAULT_NO=DEFAULT_NO, PARENT=PARENT, QUESTION=QUESTION, SIMPLE=SIMPLE, _extra=_extra)
Return value
-1 if the keyword QUESTION is not activated
If the keyword is activated, return 1 for yes and 0 for no.
Parameters
text
in
required
one string or one vector of string. Si le string ne
comporte qu''un element, on cherche les eventuels characteres de
retour a la ligne: '!C'. If text is set to an array of strings, each
array element is displayed as a separate line of text.
Keywords
DEFAULT_NO
default: "Yes"
Set this keyword to make the "No" button the default selection for
"Question" dialog.
PARENT
same as DIALOG_PARENT de dialog_message.pro
QUESTION
default: "Warning"
Set this keyword to create a "Question" dialog.
SIMPLE
activate to print only the message without the name
and the line of the routine (defined by calling routine_name)
Activate to print the error message without printing the routine name with
its full path.
_extra
used to pass keywords from dialog_message.pro and message.pro
Examples
If there is not any widget activated:
IDL> help, report('toto tata')
% $MAIN$: toto tata
INT = -1
IDL> help, report('does it works ?',/question)
does it works ? y/n (default answer is y)
BYTE = 1
IDL> help, report('question1: !C does it works ?',/question)
question1:
does it works ? y/n (default answer is y)
BYTE = 1
If widgets are already activated, it is the same thing but with widgets!
Version history
Version
$Id: report.pro 163 2006-08-29 12:59:46Z navarro $
History
Sebastien Masson (smasson@lodyc.jussieu.fr)
21/10/1999
Produced by IDLdoc 2.0.