#include (statement)

<< Click to Display Table of Contents >>

#include (statement)

#include "[Path\]FileName"

Embeds a file with Basic statements into the current script – as if the file's content was inserted at the place where the #include statement resides.

For example, you can create a file that contains the definitions of some constants or dialogs that you want to reuse in multiple scripts.

Note: You can omit the file path if the file to embed resides in the same folder.

Examples:

#include "code_snippet.bas"

#include "c:\scripts\code_snippet.bas"