Liberty BASIC Workshop Help Previous topicNext topicFirst topicLast topic

EDITOR TOOLS
 
 
GUI BUILDER
There is a GUI BUILER provided with Liberty BASIC Workshop.
 
FREEFORM
A programmer may choose either a BAS or TKN version of Freeform to access from within Liberty BASIC Workshop. Set the path to the desired version of Freeform in the Options dialog.
 
SHOW VARIABLES
The Show Variable tool displays all variables contained in the current code editor window. One column lists the variable names, while the other lists the line numbers where they can be found. Clicking on the header for either column sorts the list, in either ascending or descending order according to name, or according to line number. The window can be closed, or the "Go to Line" button can be clicked to cause the line containing the selected variable to scroll to the top of the edit window.
 
INCLUDE FILES
Liberty BASIC Workshop has the ability to allow "include" files in code. This means that a program's code may be contained on more than one module and compiled at runtime. This allows modules to be portable. Frequently used functions needn't be rewritten for each new program that uses them. The code module containing these functions can be copied to the new program's directory and simply "included" in the main code. In addition to allowing modularity and portability of code, this method allows program modules to remain smaller and easier to manage. To use "include" files in a program:
 
The first line of code must start with the term
 
'include
 
followed by the filename of the file to include. The file must be in the same directory as the program file, and no path information should be used.  Example:
 
'include filename.bas
 
If more than one file is to be included, each file must be listed on its own line, one after the other, like this:
 
'include file1.bas
'include file2.bas
'include file3.bas
'include myfunctions.bas
'include subroutines.bas
 
and so on.
 
It is up to the individual programmer to make certain that there are no conflicts within the set of included files. Conflicts could be things like duplicated function names or branch labels, or an END statement in more than one location.
 
Whenever a program is run or debugged through Liberty BASIC Workshop, it is checked for "include" files. If there are included files, they are appended to the original file in a temporary file on disk and this file is run using Liberty BASIC.
 
To save a file with all of the "include" files, choose SAVE PROJECT from the file menu. The current file will be saved to disk, and all "include" files will be appended in the order they are listed at the top of the code.
 


HTML  export copyright (C) 1998 Windows Help Designer