ENDPROC

From Lianjapedia
Jump to: navigation, search

Purpose

Return from a procedure or program

Syntax

ENDPROC

See Also

PROCEDURE, RETURN

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