Difference between revisions of "INCLUDE"

From Lianjapedia
Jump to: navigation, search
m (1 revision)
 
Line 1: Line 1:
 
==Purpose==
 
==Purpose==
 
Include another source file in the current program
 
Include another source file in the current program
 
  
 
==Syntax==
 
==Syntax==
 
&#035;INCLUDE "<filename>"
 
&#035;INCLUDE "<filename>"
 
  
 
==See Also==
 
==See Also==
[[COMPILE]], [[DEBUG]], [[DO]], [[LINK]], [[MODIFY COMMAND]], [[PARAMETERS]], [[PROCEDURE]], [[SET CLIPPER]], [[SET CLIPPER5]], [[SET COMPATIBLE]], [[SET PSHARE]]
+
[[COMPILE]], [[DEBUG]], [[DO]], [[MODIFY COMMAND]], [[PARAMETERS]], [[PROCEDURE]]
 
+
  
 
==Description==
 
==Description==
The #INCLUDE directive is used to include another source file in the current program. This is the equivalent of issuing a DO <filename>.  As with the DO command, the file extension must be specified if it is not the default '.prg'.
+
The #INCLUDE directive is used to include another source file in the current program at compile time.
 
+
To make functions or procedures from a function library available to another program, the SET PROCEDURE command should be used.
+
 
+
  
 
==Example==
 
==Example==
Line 28: Line 22:
 
</code>
 
</code>
  
 
==Products==
 
Recital Server, Recital
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
[[Category:Applications]]
 
[[Category:Applications Commands]]
 

Latest revision as of 12:36, 7 March 2013

Purpose

Include another source file in the current program

Syntax

#INCLUDE "<filename>"

See Also

COMPILE, DEBUG, DO, MODIFY COMMAND, PARAMETERS, PROCEDURE

Description

The #INCLUDE directive is used to include another source file in the current program at compile time.

Example

//Check user details before proceeding
public validuser
#include "checklogin.ch"
if not validuser
    return
endif
...