Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- QuickBASIC 3.0 - <b>chain transfer to another program</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CHAIN                    Transfer to Another Program

 CHAIN filespec

    Transfers control to another program.

    filespec    A string expression that follows DOS file naming
                conventions; If no extension is supplied, an extension of
                .EXE is assumed.

   -----------------------------------------------------------------------

      Notes:    If the calling program and the chained-to program are both
                compiled with the default library, BRUN20.LIB, variables
                may be passed to the chained-to program via COMMON, and
                files opened by the calling program remain open to the
                CHAINed program.

                The alternate library, BCOM20.LIB does not support COMMON,
                and in programs compiled with BCOM20.LIB, a CHAIN
                statement is equivalent to a RUN statement (i.e., open
                files are closed before the CHAINed program is executed).

                Note the following differences between QuickBASIC and the
                BASIC interpreter:

                1.  The interpreter assumes a .BAS extension for the
                    chained-to filespec; QuickBASIC assumes .EXE. The only
                    explicit filespec extension allowed in QuickBASIC is
                    .EXE.

                2.  QuickBASIC does not support the ALL, MERGE, DELETE,
                    and line options of the interpreted BASIC CHAIN
                    statement.

See Also: COMMON

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson