85ba2c56d500479c32180e3d4494e889188a4bf3
[scilab.git] / scilab / modules / core / help / ja_JP / error_handling / warning.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:lang="ja" xml:id="warning">
3     <refnamediv>
4         <refname>warning</refname>
5         <refpurpose>警告メッセージ</refpurpose>
6     </refnamediv>
7     <refsynopsisdiv>
8         <title>呼出し手順</title>
9         <synopsis>warning('string')
10             warning('off')
11             warning('on')
12             mode = warning('query')
13         </synopsis>
14     </refsynopsisdiv>
15     <refsection>
16         <title>説明</title>
17         <para>
18             警告メッセージとして文字列<literal>'string'</literal>を表示します.
19         </para>
20         <para>
21             <literal>'on'</literal> は警告メッセージを有効にします.
22         </para>
23         <para>
24             <literal>'off'</literal> は警告メッセージを無効にします.
25         </para>
26         <para>
27             <literal>'query'</literal> は, <literal>'on'</literal> または <literal>'off'</literal> の状態を取得します.
28         </para>
29     </refsection>
30     <refsection>
31         <title>例</title>
32         <programlisting role="example"><![CDATA[ 
33 warning('on') 
34 warning('this is a warning')
35 warning('off')
36 warning('this is a warning')
37 warning('query')
38 warning('on')
39 // Example with a localized message
40 warning(msprintf(gettext("%s: Wrong number of input argument: %d expected.\n"),"myFunction",2));
41  ]]></programlisting>
42     </refsection>
43     <refsection role="see also">
44         <title>参照</title>
45         <simplelist type="inline">
46             <member>
47                 <link linkend="error">error</link>
48             </member>
49             <member>
50                 <link linkend="gettext">gettext</link>
51             </member>
52             <member>
53                 <link linkend="msprintf">msprintf</link>
54             </member>
55         </simplelist>
56     </refsection>
57 </refentry>