As you probably already know, My Visual Database allows you to place script sources in several files, which is very convenient if the number of lines of code exceeds a couple of thousand. In order to connect a module (a file with the .pas extension) to the main code, you must specify it in the uses:
// sort by degree of dependency: first those that do not refer to anyone, then dependent
'ConstVar.pas', // global constants and application variables
'System\Utils.pas', // system procedures
'Tools\Tools.pas', // tools
'VClass\VClass.pas', // virtual classes and extensions
'Forms\Forms.pas', // forms
'UserApp.pas'; // general procedures and application functions
A prerequisite is that the module file is located inside the Script folder, nested storage of module files in subfolders is also allowed.
Unfortunately, the built-in MVDB editor does not support editing modules, but the solution was easily found in the person of the universal editor Notepad ++, which is used by many programmers. As you can see from the project file tree, there are quite a lot of them, and only six are present in the uses command. The remaining modules are connected in the modules described above, they also contain the uses command for files. For example, the Forms.pas file is used solely to register modules that store handlers.
Read more: https://k245.ru/en/mvdb-en/butterfly-effect.html