Skip to content

Importing another file

Wang Renxin edited this page Nov 19, 2017 · 3 revisions

It's able to import another script source file in MY-BASIC. Use an IMPORT statement as follow to do so:

import "some_file.bas"

Assuming there's a "some_file.bas" file at the working directory on the disk, this statement will load it at the loading pass, just the same as copied the content of "some_file.bas" right there.

Read the Customizing an importer page to get information about how to customize an importer.

Read the Module (namespace) page to get information about importing a module (using a namespace) with the IMPORT statement.

Clone this wiki locally