Basic4ppc Modules reference

◄   Previous page         Table of Contents          Next page  ►

Basic4ppc  Home  |  Forum

 

Modules

 

What modules are

A Basic4ppc module is the fundamental building block of a project. A module is a code file, holding code, controls, objects and forms. All Basic4ppc programs contain a main module called "Main", held in a file with the name of the project and the extension ".sbp". Additional modules are held in files named by the programmer - the file has the same name as the module does, with the extension ".bas". A Basic4ppc project is composed of the main module and any number of additional modules. The program execution starts at the main module, but other subs and variables can be stored in any other module. Modules are displayed in the Project tree as follows:

A project divided into two modules - the main module's name is Main (though the file name is different)
and the second module's name is Module2, with the file name "Module2.bas".

 

What are modules for

Main advantages of modules are:

 

Next page: Manipulating modules

Basic4ppc Modules reference

◄   Previous page         Table of Contents          Next page  ►

Basic4ppc  Home  |  Forum