QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

CHAIN is used to change seamlessly from one module to another one in a program.

Legacy Support

Syntax

CHAIN moduleName$

Parameter(s)

Description

Example(s)

CHAIN looks for same file type extension as program module (BAS or EXE).


 CHAIN "Level1" 

Explanation: The file referred to is “Level1.BAS” if the program module using the call is a BAS file. If the program was compiled, it would look for “Level1.EXE”.

See Also