#include

beasscript-logo-small

#include=<path>\<filename.src>

Loads this file, in which all the global functions are defined.

 

With this function you can define your own BeasScript functions to use in different windows

 

 

Every function must be defined with the following syntax:

 

global function <function name>
...
end global

 

 

Example:

initialize function, which defined in project folder

#include=<system.projectfolder>\myfunctions.src

 

If functions are defined differently, Beas will not be able to read the file.

 

Example

 

wrong:

global function myfunction
global end

 

wrong:

global function myfunction
endglobal

 

correct:

global function myfunction
end global

 

 

The load function handles large source files fast.