~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/functions/help/pt_BR/execstr.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 *
12
12
 -->
13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="execstr" xml:lang="en">
14
 
  <refnamediv>
15
 
    <refname>execstr</refname>
16
 
    <refpurpose>executa c�digo Scilab em strings</refpurpose>
17
 
  </refnamediv>
18
 
  <refsynopsisdiv>
19
 
    <title>Seq��ncia de Chamamento</title>
20
 
    <synopsis>execstr(instr)
21
 
      ierr=execstr(instr,'errcatch' [,msg])
22
 
    </synopsis>
23
 
  </refsynopsisdiv>
24
 
  <refsection>
25
 
    <title>Par�metros</title>
26
 
    <variablelist>
27
 
      <varlistentry>
28
 
        <term>instr</term>
29
 
        <listitem>
30
 
          <para>vetor de strings, instru��o Scilab a ser executada. </para>
31
 
        </listitem>
32
 
      </varlistentry>
33
 
      <varlistentry>
34
 
        <term>ierr</term>
35
 
        <listitem>
36
 
          <para>inteiro, 0 ou n�mero de erro. </para>
37
 
        </listitem>
38
 
      </varlistentry>
39
 
      <varlistentry>
40
 
        <term>msg</term>
41
 
        <listitem>
42
 
          <para>
43
 
            string com valores <literal>'m'</literal> ou
44
 
            <literal>'n'</literal>. O padr�o � <literal>'n'</literal>.
45
 
          </para>
46
 
        </listitem>
47
 
      </varlistentry>
48
 
    </variablelist>
49
 
  </refsection>
50
 
  <refsection>
51
 
    <title>Descri��o</title>
52
 
    <para>Executa as instru��es Scilab fornecidas pelo argumento
53
 
      <literal>instr</literal>.
54
 
    </para>
55
 
    <para>Note que instr n�o deve fazer uso de marcas de continua��o(..)
56
 
    </para>
57
 
    <para/>
58
 
    <para>Se o flag 'errcatch' n�o estiver presente, a manipula��o de erros
59
 
      ocorre de maneira usual.
60
 
    </para>
61
 
    <para>Se o flag 'errcatch' for ajustado, e um erro for encontrado enquanto
62
 
      s�o executadas as instru��es definidas em <literal>instr</literal>,
63
 
      <literal>execstr</literal> n�o imprime uma mensagem de erro, mas aborta a
64
 
      execu��o das instru��es <literal>instr</literal> (no ponto onde o erro
65
 
      ocorreu) e retorna com <literal>ierr</literal> igual ao n�mero de erro.
66
 
      Neste caso a exibi��o da mensagem de erro � controlada pela op��o
67
 
      <literal>msg</literal> :
68
 
    </para>
69
 
    <variablelist>
70
 
      <varlistentry>
71
 
        <term>"m"</term>
72
 
        <listitem>
73
 
          <para>a mensagem � exibida e registrada.</para>
74
 
        </listitem>
75
 
      </varlistentry>
76
 
      <varlistentry>
77
 
        <term>"n"</term>
78
 
        <listitem>
79
 
          <para>nenhuma mensagem de erro � exibida, mas a mensagem de erro �
80
 
            registrada (ver <literal>lasterror</literal>). Este � o
81
 
            padr�o.
82
 
          </para>
83
 
        </listitem>
84
 
      </varlistentry>
85
 
    </variablelist>
86
 
    <para>ierr= execstr(instr,'errcatch') pode manipular erros sint�ticos.
87
 
      Isto � �til para a avalia��o de uma instru��o obtida por uma pegunta ao
88
 
      usu�rio.
89
 
    </para>
90
 
  </refsection>
91
 
  <refsection>
92
 
    <title>Exemplos</title>
93
 
    <programlisting role="example"><![CDATA[ 
 
14
    <refnamediv>
 
15
        <refname>execstr</refname>
 
16
        <refpurpose>executa c�digo Scilab em strings</refpurpose>
 
17
    </refnamediv>
 
18
    <refsynopsisdiv>
 
19
        <title>Seq��ncia de Chamamento</title>
 
20
        <synopsis>execstr(instr)
 
21
            ierr=execstr(instr,'errcatch' [,msg])
 
22
        </synopsis>
 
23
    </refsynopsisdiv>
 
24
    <refsection>
 
25
        <title>Par�metros</title>
 
26
        <variablelist>
 
27
            <varlistentry>
 
28
                <term>instr</term>
 
29
                <listitem>
 
30
                    <para>vetor de strings, instru��o Scilab a ser executada. </para>
 
31
                </listitem>
 
32
            </varlistentry>
 
33
            <varlistentry>
 
34
                <term>ierr</term>
 
35
                <listitem>
 
36
                    <para>inteiro, 0 ou n�mero de erro. </para>
 
37
                </listitem>
 
38
            </varlistentry>
 
39
            <varlistentry>
 
40
                <term>msg</term>
 
41
                <listitem>
 
42
                    <para>
 
43
                        string com valores <literal>'m'</literal> ou
 
44
                        <literal>'n'</literal>. O padr�o � <literal>'n'</literal>.
 
45
                    </para>
 
46
                </listitem>
 
47
            </varlistentry>
 
48
        </variablelist>
 
49
    </refsection>
 
50
    <refsection>
 
51
        <title>Descri��o</title>
 
52
        <para>Executa as instru��es Scilab fornecidas pelo argumento
 
53
            <literal>instr</literal>.
 
54
        </para>
 
55
        <para>Note que instr n�o deve fazer uso de marcas de continua��o(..)
 
56
        </para>
 
57
        <para/>
 
58
        <para>Se o flag 'errcatch' n�o estiver presente, a manipula��o de erros
 
59
            ocorre de maneira usual.
 
60
        </para>
 
61
        <para>Se o flag 'errcatch' for ajustado, e um erro for encontrado enquanto
 
62
            s�o executadas as instru��es definidas em <literal>instr</literal>,
 
63
            <literal>execstr</literal> n�o imprime uma mensagem de erro, mas aborta a
 
64
            execu��o das instru��es <literal>instr</literal> (no ponto onde o erro
 
65
            ocorreu) e retorna com <literal>ierr</literal> igual ao n�mero de erro.
 
66
            Neste caso a exibi��o da mensagem de erro � controlada pela op��o
 
67
            <literal>msg</literal> :
 
68
        </para>
 
69
        <variablelist>
 
70
            <varlistentry>
 
71
                <term>"m"</term>
 
72
                <listitem>
 
73
                    <para>a mensagem � exibida e registrada.</para>
 
74
                </listitem>
 
75
            </varlistentry>
 
76
            <varlistentry>
 
77
                <term>"n"</term>
 
78
                <listitem>
 
79
                    <para>nenhuma mensagem de erro � exibida, mas a mensagem de erro �
 
80
                        registrada (ver <literal>lasterror</literal>). Este � o
 
81
                        padr�o.
 
82
                    </para>
 
83
                </listitem>
 
84
            </varlistentry>
 
85
        </variablelist>
 
86
        <para>ierr= execstr(instr,'errcatch') pode manipular erros sint�ticos.
 
87
            Isto � �til para a avalia��o de uma instru��o obtida por uma pegunta ao
 
88
            usu�rio.
 
89
        </para>
 
90
    </refsection>
 
91
    <refsection>
 
92
        <title>Exemplos</title>
 
93
        <programlisting role="example"><![CDATA[ 
94
94
execstr('a=1') // ajusta a=1.
95
95
execstr('1+1') // faz nada (enquanto evstr('1+1') retorna 2)
96
96
 
111
111
execstr('a=[1 2 3)','errcatch')
112
112
lasterror(%t)
113
113
 ]]></programlisting>
114
 
  </refsection>
115
 
  <refsection role="see also">
116
 
    <title>Ver Tamb�m</title>
117
 
    <simplelist type="inline">
118
 
      <member>
119
 
        <link linkend="evstr">evstr</link>
120
 
      </member>
121
 
      <member>
122
 
        <link linkend="lasterror">lasterror</link>
123
 
      </member>
124
 
      <member>
125
 
        <link linkend="error">error</link>
126
 
      </member>
127
 
      <member>
128
 
        <link linkend="try">try</link>
129
 
      </member>
130
 
    </simplelist>
131
 
  </refsection>
 
114
    </refsection>
 
115
    <refsection role="see also">
 
116
        <title>Ver Tamb�m</title>
 
117
        <simplelist type="inline">
 
118
            <member>
 
119
                <link linkend="evstr">evstr</link>
 
120
            </member>
 
121
            <member>
 
122
                <link linkend="lasterror">lasterror</link>
 
123
            </member>
 
124
            <member>
 
125
                <link linkend="error">error</link>
 
126
            </member>
 
127
            <member>
 
128
                <link linkend="try">try</link>
 
129
            </member>
 
130
        </simplelist>
 
131
    </refsection>
132
132
</refentry>