Error, unterminated procedure - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : unterminatedprocedure

Error, unterminated procedure

 

Description

Examples

See Also

Description

This error occurs when the input is executed before the procedure statement is complete.  A proc statement must be terminated by end proc.

 

To enter multiline inputs without generating errors, press Shift+Enter.  This produces another line in the input region without executing the input.

Examples

Example 1:

proctinteger t2

Error, unterminated procedure

Solution 1: Terminate the procedure with end proc.

proctinteger t2 end proc

proct::integert^2end proc

(2.1)

Example 2:

proctinteger

Error, unterminated procedure

Solution 2: Use Shift+Enter to enter a multiline procedure.

proctinteger      if t>2 then          t2      else          t      end if  end proc

proct::integerif2<tthent&Hat;2elsetend ifend proc

(2.2)

See Also

proc, shortcut keys