Difference between revisions of "INCLUDE"

From Recital Documentation Wiki
Jump to: navigation, search
(Class)
Line 1: Line 1:
 
 
 
==Purpose==
 
==Purpose==
 
Include another source file in the current program
 
Include another source file in the current program
Line 32: Line 30:
  
 
==Products==
 
==Products==
Recital Database Server, Recital Mirage Server, Recital Terminal Developer
+
Recital Server, Recital  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Commands]]
 
[[Category:Commands]]
 
[[Category:Applications]]
 
[[Category:Applications]]
 
[[Category:Applications Commands]]
 
[[Category:Applications Commands]]

Revision as of 16:55, 11 November 2009

Purpose

Include another source file in the current program


Syntax

#INCLUDE "<filename>"


See Also

COMPILE, DEBUG, DO, LINK, MODIFY COMMAND, PARAMETERS, PROCEDURE, SET CLIPPER, SET CLIPPER5, SET COMPATIBLE, SET MAXDBO, SET PSHARE


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'.

To make functions or procedures from a function library available to another program, the SET PROCEDURE command should be used.


Example

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


Products

Recital Server, Recital