Difference between revisions of "ENDPROC"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Return from a procedure or program | Return from a procedure or program | ||
− | |||
==Syntax== | ==Syntax== | ||
ENDPROC | ENDPROC | ||
− | |||
==See Also== | ==See Also== | ||
− | + | [[PROCEDURE]], [[RETURN]] | |
− | + | ||
==Description== | ==Description== | ||
The ENDPROC statement closes the active program file, releases memory variables and arrays defined as private, and passes control back to the calling program assuming no RETURN statement has already been called. | The ENDPROC statement closes the active program file, releases memory variables and arrays defined as private, and passes control back to the calling program assuming no RETURN statement has already been called. | ||
− | If the procedure is exited using the ENDPROC command or other implicit RETURN, the procedure will have a return value of .T. (true). | + | If the procedure is exited using the ENDPROC command or other implicit RETURN, the procedure will have a return value of .T. (true). |
− | + | ||
==Example== | ==Example== | ||
Line 30: | Line 26: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Commands]] | [[Category:Commands]] | ||
− | [[Category: | + | [[Category:Libraries]] |
− | [[Category: | + | [[Category:User Defined Functions]] |
Latest revision as of 10:59, 4 February 2013
Contents
Purpose
Return from a procedure or program
Syntax
ENDPROC
See Also
Description
The ENDPROC statement closes the active program file, releases memory variables and arrays defined as private, and passes control back to the calling program assuming no RETURN statement has already been called.
If the procedure is exited using the ENDPROC command or other implicit RETURN, the procedure will have a return value of .T. (true).
Example
procedure example_1 dialog box [has return statement] return //already exited function endproc procedure example_2 dialog box [has no return statement] endproc