La interfaz de VDS Renaissance está disponible en varios idiomas. La documentación oficial se mantiene en inglés para garantizar una referencia única, coherente y siempre actualizada.

#INCLUDE

Windows Linux macOS

Syntax

#INCLUDE <file1>,<file2>,...

Description

The #INCLUDE directive allows a program to incorporate code from multiple script files, which are compiled into the program in the order in which they are specified.

The use of .dsc in the filenames is optional. If a full path is not specified, the compiler looks first in the project's main directory, and then in a special include folder that can be set using the IDE Options menu.

The #INCLUDE directive is also used to include precompiled units (.dsu files) in a script. In this case, the file type (.dsu) must be specified in the filename, so that the compiler knows to look for a unit file and not a plain text source file.

Note that commands and functions defined in a INCLUDE file (or a compiled .dsu version of it) may be defined (using #DEFINE) in that file.

The compiler preprocesses included files looking for command and function definitions, in order that they don't produce an "illegal command or function" error when they are compiled.

Example

See a more advanced example...

See also