Difference between revisions of "CLOSE PROCEDURE"

From Lianjapedia
Jump to: navigation, search
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Close the procedure library file
 
Close the procedure library file
 
  
 
==Syntax==
 
==Syntax==
 
CLOSE PROCEDURE [<filename> | (<expC>)]
 
CLOSE PROCEDURE [<filename> | (<expC>)]
 
  
 
==See Also==
 
==See Also==
[[CLOSE]], [[CLOSE ALL]], [[CLOSE ALTERNATE]], [[CLOSE DATABASES]], [[CLOSE FORMAT]], [[DO]], [[SET PROCEDURE]]
+
[[CLOSE]], [[CLOSE ALL]], [[CLOSE ALTERNATE]], [[CLOSE DATABASES]], [[DO]], [[SET PROCEDURE]]
 
+
  
 
==Description==
 
==Description==
Line 15: Line 12:
  
 
Only procedures and functions declared with the SET PROCEDURE TO command are released with the CLOSE PROCEDURE command.  Procedures and functions declared in the main program are left active.  Up to a maximum of ten procedure files can be opened at one time when the ADDITIVE keyword is used on the SET PROCEDURE command.
 
Only procedures and functions declared with the SET PROCEDURE TO command are released with the CLOSE PROCEDURE command.  Procedures and functions declared in the main program are left active.  Up to a maximum of ten procedure files can be opened at one time when the ADDITIVE keyword is used on the SET PROCEDURE command.
 
  
 
==Example==
 
==Example==
Line 25: Line 21:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Applications]]
+
[[Category:Libraries]]
[[Category:Applications Commands]]
+

Latest revision as of 10:56, 4 February 2013

Purpose

Close the procedure library file

Syntax

CLOSE PROCEDURE [<filename> | (<expC>)]

See Also

CLOSE, CLOSE ALL, CLOSE ALTERNATE, CLOSE DATABASES, DO, SET PROCEDURE

Description

The CLOSE PROCEDURE command closes the procedure library named <filename>, or if no library is specified, all currently open procedure libraries. The <filename> can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. The <filename> is assumed to have a '.prg' extension unless otherwise stated.

Only procedures and functions declared with the SET PROCEDURE TO command are released with the CLOSE PROCEDURE command. Procedures and functions declared in the main program are left active. Up to a maximum of ten procedure files can be opened at one time when the ADDITIVE keyword is used on the SET PROCEDURE command.

Example

set procedure to yourlib
do yourproc
do yourproc2
close procedure