User`s manual
CYDAS UDR Library User’s Guide CYDAS UDR Library Description and Use
10
Using the Library with DOS BASIC
Each of the supported versions of BASIC consists of two distinct systems. Programs can be loaded into the
BASIC editor and run from within the integrated BASIC environment. Programs can also be compiled by a
command line compiler into stand-alone executable programs that can be run on their own without the help of
the integrated BASIC environment. The CYDAS UDR Library provides the tools for both methods.
BASIC header file
Every BASIC program that uses the CYDAS UDR Library must have a line which includes the BASIC
CYDAS UDR Library header file - CB.BI. The following line should appear near the start of every program,
before the first library call is made.
'$INCLUDE: 'CB.BI'
Using the Library within the integrated BASIC environment
When you start up BASIC, load the "quick library" version of CYDAS UDR Library.
For Quick BASIC, type:
qb /l cbqb
For Professional BASIC, type:
qbx /l
cbpb
For VisualBasic for DOS, type:
vbdos /l cbvb
Using the Library with the BASIC command line compiler
To build stand-alone executable files with the command line compiler, you must link your compiled BASIC
program with the stand-alone version of the CYDAS UDR Library. To do this, you must supply the linker
with the library name. The names of the .lib files are:
QuickBasic: CBQB.LIB
Professional Basic: CBPB.LIB
VisualBasic for DOS: CBVB.LIB
Sample BASIC programs
The sample BASIC programs demonstrate how to call each function in the CYDAS UDR Library. These
programs can be run from within the integrated BASIC environment. They can also be compiled using the
command line compiler with the batch file supplied. The names of the batch files are:
QuickBasic: MAKEQB.BAT
Professional BASIC: MAKEPB.BAT
VisualBasic for DOS: MAKEVB.BAT
Passing arguments to the CYDAS UDR Library
All functions in the library require that arguments be passed to them. The file CB.BI contains the definition of
all the argument types that are passed. In general, there are two classes of arguments: inputs and outputs.