Library
Previous  Next

Description: Adds an ASM library to your project. The ASM library will be included at the end of the source code regardless of where it's located in your project. The library file must be in the \slibrary\ folder in the SecondBASIC program folder.

     Syntax:
     
Library <LibraryFile> [, <VarFile>]

Part
Description
<LibraryFile>
Required. This is the file name of the library located in the \slibrary\ folder.
<VarFile>
Optional. If the library has a <VarFile>, this will declare the variables automatically instead of requiring to declare them yourself.

Example:

        ' Without the <VarFile>
        Library "example.s"
        Dim a$ As String                          ' Required variable from the library
        Call ExamplePrint, "Hello World"

        ' With the <VarFile>
        Library "example.s", "example.var"
        Call ExamplePrint, "Hello World"

Notes: To create a <VarFile>, open up a blank text document and type in the variable declarations as if you were defining them in your project.

Example:

'example.var
DIM a AS STRING