📄 bb.doc
字号:
BasicBasic is copyright (c) 1992, 1993 by Mark Davidsaver.
All rights reserved.
LICENSE INFORMATION
-------------------------------------------------------
This shareware version of BasicBasic may be distributed
to others subject to the following 2 conditions:
1) Only a nominal fee, not to exceed $5.00, may be
charged for distribution.
2) The following files must ALL be distributed UNALTERED.
ORDER.DOC BB.DOC BBE.EXE BB.EXE BB152.STB
BBL152.EXE WBBE.EXE WBB.EXE WBBL152.EXE
WBB.FON BBICON.EXE SAMPLE1.BAS SAMPLE2.BAS
SAMPLE3.BAS SAMPLE4.BAS SAMPLE5.BAS SAMPLE6.BAS
SAMPLE7.BAS SAMPLE8.BAS SAMPLE9.BAS SAMPLE10.BAS
SAMPLE11.BAS SAMPLE12.BAS SAMPLE13.BAS
SAMPLE14.BAS SAMPLE15.BAS SAMPLEW1.BAS
SAMPLEW2.BAS SAMPLEw3.BAS SAMPLE14.ICO
SAMPLE15.WAV SAMPLE14.BMP
The software and accompanying documentation are provided
"as is" without warranty of any kind. The entire risk as
to the results and performance of the software is assumed
by you.
This special shareware version limits the size of the
program you can compile.
Copyright (c) 1992, 1993 by Mark Davidsaver
TABLE OF CONTENTS
Summary ................................ 2
Getting Started Quickly ................ 5
DOS Instructions ..... ................. 7
Windows Instructions ..... ............. 11
Statement and Function Reference ....... 15
Graphics Programming for Beginners ..... 57
Programming Buttons .................... 60
Programming Menus ...................... 62
Programming Windows(for DOS or Windows). 64
Programming Dialog Boxes ............... 66
Windows Graphics Printing .............. 72
Program Icon ........................... 75
Communications Programming ............. 77
Windows and Graphics ................... 78
Bitmaps ................................ 82
Creating Fonts ......................... 86
Chaining and Common .................... 90
BasicBasic Technical ................... 91
Windows Metacommands ................... 93
Metacommands ........................... 94
Seperate Compilation ................... 95
Default Windows Font.................... 97
(386 Enhanced Mode Font information)
Errors ................................. 99
Keyboard codes ........................ 101
1
Copyright (c) 1992, 1993 by Mark Davidsaver
SUMMARY
-------------------------------------------------------
BasicBasic is an easy to use program development system
for DOS or Windows. You can use BasicBasic to make your
own programs. BasicBasic creates EXE files which can be
run under DOS or Windows. BasicBasic supports both
graphics and text screens.
BasicBasic supports many commands common to other Basic
compilers, as well as, many new commands unique to
BasicBasic. For example, BasicBasic can output high
quality sound files under Windows or DOS (if sound board
present).
Programs written using BasicBasic can run under either DOS
or Windows. The BasicBasic development system, itself,
may run under either DOS or Windows.
Here is a list of statements and functions the BasicBasic
compiler recognizes. Refer to the detailed description
later on for the exact syntax recognized.
PROGRAM CONTROL
CALL FUNCTION...END FUNCTION
DECLARE GOSUB...RETURN
DO...LOOP GOTO
EXIT DO IF...THEN...ELSE...ENDIF
EXIT FUNCTION STOP
EXIT SUB SUB...END SUB
FOR...NEXT SYSTEM
SCREEN OUTPUT
CLS PRINT
CSRLIN PRINT USING
LOCATE SCROLLAREA
POS TAB
KEYBOARD AND MOUSE INPUT
INKEY$ MOUSEON
INPUT MOUSEX
MOUSEB MOUSEY
GRAPHICS
BITMAPC PALETTE
BITMAPH POINT
CIRCLE PRESET
COLOR PSET
GET PUT
LINE SCREEN
LOADBITMAP STOREBITMAP
PAINT
2
Copyright (c) 1992, 1993 by Mark Davidsaver
STRING
CHR$ RIGHT$
INSTR SPACE$
LEFT$ STR$
LEN STRING$
MID$ UCASE$
SOUND
BEEP SOUND
PLAYSOUND SNDDEV
DIALOG
DIALOG OPENFILEREAD
DIALOG$ OPENFILESAVE
MESSAGEBOX
MENU
ADDSUBMENU MENUITEMON
MAINMENU MENUITEMGRAY
BUTTON
CBUTTON DBUTTON
CHECKOFF RADIOON
CHECKON RADIOOFF
PRINTER COMMANDS
LPRINT
LPRINT USING
FILE INPUT/OUTPUT
CHDIR LINE INPUT #
CHDRIVE LOC
CLOSE # LOCK
DIR$ LSET
CURDIR$ MKDIR
EOF OPEN
FIELD PRINT #
GET # PUT #
INPUT$ RMDIR
INPUT # UNLOCK
KILL WRITE #
DATA DEFINITION
COMMON READ
DATA RESTORE
DIM
ARITHMETIC
ABS RAMDOMIZE
ASC RND
ATN SIN
COS SQR
FIX TAN
3
Copyright (c) 1992, 1993 by Mark Davidsaver
INT VAL
IRND
DOS AND EXTERNAL COMMANDS
CHAIN OSTYPE
COMMAND$ SHELL
DATE$ TIME$
FREEMEM TIMER
SCREEN WINDOW COMMANDS
CREATEWINDOW SELECTWINDOW
DESTROYWINDOW
FONTS
CREATEFONT FONT
DLEN SELECTFONT
FONT$
SERIAL COMMUNICATIONS
COMSTATI
OPEN "COMn"
SPECIAL MICROSOFT WINDOWS COMMANDS
CREATEBITMAP PRINTCONTROL
COPYBITS SELECTBITMAP
ON CLOSE SELECTDISPLAY
ON PAINT SELECTPRINT
POSITION SELECTWINDOW
STRETCHBITS
MISCELLANEOUS
LET
REM
SETERRLEVEL
and the operators + - / * \ ^ AND OR MOD
4
Copyright (c) 1992, 1993 by Mark Davidsaver
GETTING STARTED QUICKLY
-------------------------------------------------------
The easiest way to run BasicBasic is to have all required
files in one directory. Create a directory and copy the
supplied files into the directory. BasicBasic files
required for each operating environment are:
FILE USE
_____ __________________________________
BBE.EXE \
BB.EXE |- required under DOS
BB152.STB |
BBL152.EXE /
WBBE.EXE \
WBB.EXE |- required under Windows
BB152.STB |
WBBL152.EXE |
BBICON.EXE |
WBB.FON /
In addition many sample programs are provided to let you
get started quickly. The sample programs have file names
of the format SAMPLEnn.BAS. In addition an Icon (.ICO)
and Bitmap (.BMP) file are provided for use by the sample
programs. The best way to install BasisBasic is to copy
ALL supplied files to your BasicBasic directory.
If you are new to programming, or new to BasicBasic, it is
a good idea to start out by compiling and running these
sample programs. If you are new to Basic programming a
good second step is to try modifying the sample programs
to operate differently.
SAMPLE1.BAS
SAMPLE2.BAS\__ Examples applicable to DOS and Windows
SAMPLE3.BAS/
.
.
SAMPLEW1.BAS
SAMPLEW2.BAS __ Examples For Windows Only
.
.
DOS Startup:
To start the BasicBasic development system under DOS you
5
Copyright (c) 1992, 1993 by Mark Davidsaver
must first be in the directory you placed the BasicBasic
files in; then type 'BBE' at the DOS prompt.
WINDOWS Startup:
To start the BasicBasic developement system under
Windows you must run the program WBBE. You can do this
from the Program Manager File menu. Alternately you can
install WBBE in a program group using the Program
Manager and then start it by double clicking on it's
icon.
Once started you are in the BasicBasic edit mode and can
type in programs from the keyboard or read them in from
disk. When ready you can tell BasicBasic to run the
program. The program will run and then control will be
returned to the BasicBasic editor. The following sections
provide a more detailed description of how to operate in
the BasicBasic development system.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -