unterminated procedure - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : System : Error Message Guide : unterminated procedure

Error, unterminated procedure

 

Description

Examples

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