home *** CD-ROM | disk | FTP | other *** search
- ┌──────────────────────────────────────────────────────────────────────────────┐
- │ dBAT.EXE - *** The dBASE/Batch file programming language *** │
- └──────────────────────────────────────────────────────────────────────────────┘
- ┌───────────────────────────────────────────────┐
- │ Documentation for dBAT.EXE version 1.10 │
- └───────────────────────────────────────────────┘
- (c) 1991,1992 ClipCode Associates, All rights reserved.
-
- dBAT COMMAND SUMMARY: PURPOSE:
- ───────────────────── ────────
- | * comment │ 1st char on line, all text is ignored
- && comment │ all text following the && is ignored
- ? "LiteralTextString" │ line feed, then display string
- ?? "LiteralTextString" │ display string at current position
- @ r#,c# │ position the cursor
- @ r#,c# SAY "LiteralTextString" │ position the cursor & display string
- @ r#,c# ?? "LiteralTextString" │ " "
- @ r#,c# CLEAR TO r#,c# │ clear area with current color
- | @ r#,c# PROMPT "LiteralTextString"│ display a menu item (use with MENU TO)
- @ r#,c# TO r#,c# │ draw single line box
- @ r#,c# TO r#,c# DOUBLE │ draw double line box
- CLEAR │ clear entire screen w/ current color
- | MENU TO │ light-bar menu, set errorlevel, exit
- QUIT │ exit the dBAT reading of the batch file
- SET COLOR TO │ restore color to system default
- SET COLOR TO # │ set default color to color number
- | SET ICOLOR TO # │ set default inverse color to color nbr
- SET CURSOR OFF │ turn system cursor off
- SET CURSOR ON │ turn system cursor on
- | SET SCREENIO TO BIOS │ use BIOS to write to screen
- | SET SCREENIO TO DIRECT │ write directly to screen (default)
- | SET SCREENIO TO DOS │ use DOS to write to screen(for redirect)
- (| = new)
-
- QUICK START!!! (see example .BAT files)
- ──────────────
- 1. set echo off
- 2. run dBAT with the batch files path\name
- 3. jump over the dBAT portion of the batch file with a GOTO LABEL ──┐
- 4. PROC dBAT (starts the dBAT code) │
- 5. QUIT (ends the dBAT code) │
- 6. LABEL <────────────┘
- 7. if errorlevel 2 goto LABEL (always high before low number)
- 8. if errorlevel 1 goto LABEL
- 9. LABEL, etc...
-
- CONCEPT:
- ────────
- Quick text screen drawing by a batch file, using the power and
- simplicity of dBASE type commands...
-
- Problem - Batch files are slow in executing even with the fastest PCs.
- Batch files are also limited in screen drawing and color
- capablity. Many batch file enhancement programs exist, but
- they either require learning yet another proprietary command
- set or they use a second proprietary screen definition file.
-
- Solution - dBAT.EXE is run from the controlling batch file and then
- rereads the same batch file for embedded dBAT commands!
- It is very quick, fully self contained in the same batch file,
- and easily maintained / modified by the user.
-
- No compiler!
- No second screen definition file!
- No unfamiliar commands!
- No slow, plodding execution!
-
- dBAT.EXE is Fast! Convenient! Familiar!
-
- dBAT.EXE COMMAND DETAILS:
- ─────────────────────────
- | Command....: *
- Description: Comment Line: should be first char on line, all text is ignored
- Purpose....: Allows comments lines
- Example....: *** This is an example comment line
- ───
- Command....: &&
- Description: All text following the && is ignored
- Purpose....: Allows comments to be placed on a command line
- Example....: SET COLOR TO 31 && Bright white on blue
- ───
- Command....: ?
- Description: Displays a specified expression on the next line of the screen
- Purpose....: Causes a line feed to occur before the text string is displayed
- Note.......: A ? without a text string moves the cursor to the beginning of
- the next line without displaying any text
- Caution....: Use only quoted strings, does not evaluate any expressions
- Example....: ? " 1. First Menu Option "
- ? " 2. Second Menu Option "
- ───
- Command....: ??
- Description: Displays a string starting at the current cursor position
- Purpose....: Allows one string after another to be displayed, which is
- useful in creating colorful screens
- Caution....: Use only quoted strings, does not evaluate any expressions
- Example....: SET COLOR TO 159 && blinking => 31 + 128 = 159
- @ 24,01 ?? "Press"
- SET COLOR TO 31
- @ 24,07 ?? "any key to continue..."
- ───
- Command....: @ r#,c#
- Description: Position the cursor at a specified row & column
- Example....: @ 10,20
- ───
- Command....: @ r#,c# ?? "LiteralTextString"
- Description: Position the cursor at a specified row & column, and then
- display the quoted string
- Caution....: Use only quoted strings, does not evaluate any expressions
- Example....: @ 10,20 ?? "1. First Menu Option"
- @ 11,20 ?? "2. Second Menu Option"
- ───
- Command....: @ r#,c# CLEAR TO r#,c#
- Description: Clear the specified area with current color
- Example....: @ 01,02 CLEAR TO 22,78
- ───
- | Command....: @ r#,c# PROMPT "LiteralTextString"
- Description: display a menu item
- Purpose....: create light-bar menus, use with MENU TO
- Example....: @ 10,20 PROMPT "General Ledger"
- ───
- Command....: @ r#,c# TO r#,c#
- Description: Draw a single line box
- Example....: @ 00,01 TO 23,79 && draw the box
- @ 01,02 CLEAR TO 22,78 && clear the box insides
- ───
- Command....: @ r#,c# TO r#,c# DOUBLE
- Description: Draw a double line box
- Example....: @ 00,01 TO 23,79 DOUBLE && draw the box
- @ 01,02 CLEAR TO 22,78 && clear the box insides
- ───
- Command....: CLEAR
- Description: Clear the entire screen with the current color
- Example....: CLEAR
- ───
- | Command....: MENU TO
- Description: light-bar menu command
- Purpose....: activates the light-bar menu, sets errorlevel, and exits dBAT
- Example....: MENU TO
- ───
- Command....: QUIT
- Description: Exit the dBAT reading of the batch file
- Purpose....: Speeds execution of dBAT by terminating the .BAT reading process
- without reading top the end of the .BAT file
- Example....: QUIT
- ───
- Command....: SET COLOR TO
- Description: Restore color to system default
- Example....: SET COLOR TO
- ───
- Command....: SET COLOR TO #
- Description: Set default color to a color number
- Note.......: Using Color Numbers greatly increases execution speed
- run COLOR.COM or view COLOR.DOC
- Example....: SET COLOR TO 116 && red on white
- ? " U "
- SET COLOR TO 127 && bright white on white
- ?? " S "
- SET COLOR TO 113 && blue on white
- ?? " A "
- * result " U S A " in red, white, & blue color
- ───
- | Command....: SET ICOLOR TO #
- Description: Set default enhanced / inverse color to a color number
- Purpose....: control the color of the selected menu option
- Note.......: Using Color Numbers greatly increases execution speed
- run COLOR.COM or view COLOR.DOC
- Example....: SET ICOLOR TO 116 && red on white
- ───
- Command....: SET CURSOR OFF
- Description: Turn the system cursor off
- Example....: SET CURSOR OFF
- ───
- Command....: SET CURSOR ON
- Description: Turn the system cursor on
- Example....: SET CURSOR ON
- ───
- | Command....: SET SCREENIO TO BIOS
- Description: use BIOS to write to screen
- Purpose....: sends dBAT screen output through the PC's BIOS calls
- Note.......: use for compatiblity problems
- Example....: SET SCREENIO TO BIOS
- ───
- | Command....: SET SCREENIO TO DIRECT
- Description: write directly to screen (default)
- Purpose....: sends dBAT screen output directly to the screen memory area
- Note.......: this is the default, use only to reset
- Example....: SET SCREENIO TO DIRECT
- ───
- | Command....: SET SCREENIO TO DOS
- Description: use DOS to write to screen (for redirection & piping)
- Purpose....: sends dBAT screen output through the DOS's I/O system
- Note.......: allows redirection: dBAT file.dat > device
- Example....: SET SCREENIO TO DOS
-
- REGISTRATION:
- ─────────────
- See DBAT110.LIC for license information.
-
- To purchase (register) dBAT.EXE version 1.10, please make a check for
- (USA) $25.00 payable to:
-
- Robert Stribling
- ClipCode Associates
- PO Box 26675
- Greenville, SC 29616
-
- CLIPCODE ASSOCIATES TECH SUPPORT:
- ─────────────────────────────────
- Home BBS - CyberTech #: (803) 242-3766 (public line)
- CompuServe - CIS account #: 73357,1120
- Voice #: (803) 848-4707
-
- CLIPCODE SHAREWARE UPLOAD BBS:
- ──────────────────────────────
- Board: Line: Sysop:
- CyberTech Information Systems, SC (803) 242-3766 Philip Yanov
- Computer Connections, DC (202) 547-2008 Robert Blacher
- Data-Base BBS (908) 735-2180 Michael Walter
- The Atlanta Exchange, GA (404) 921-4395 Ken Cherry
- VOR BBS, CA (707) 778-8944 Vern Buerg
- The File Bank, CA (619) 728-4318 Bob Laszko
- CompuServe (see IBMFF)
-
- OTHER CLIPCODE PRODUCTS: Current Version:
- ────────────────────────
- CC.LIB - a Clipper Function Library CC106.ZIP
- PDM Sys - a Clipper SAA/CUA Pull Down Menu System PDM105.ZIP
-
- *<eof>
-