home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best Objectech Shareware Selections
/
UNTITLED.iso
/
boss
/
busi
/
fina
/
002
/
sask.doc
< prev
next >
Wrap
Text File
|
1993-01-06
|
4KB
|
112 lines
--------------------------------------------------------------------------
Version 1.35 SupremeAsk 04/26/92
Copyright (c) 1988-92 by SupremeSoft All Rights Reserved
--------------------------------------------------------------------------
SASK is simply a Norton ASK clone. It has one added feature, the
ability to import text files as the prompts. This allows you to display
all those README files, and then request the user if they want to follow
a certain course of action. All you have to do is add the prompt at the
end of the README file.
SASK automatically keeps track of the current display line, thus
allowing you to display files which are more than 24 lines long. SASK
will display "More...Press any key" at the end of each page. Naturally,
if the display doesn't overrun one page, no such prompt is made.
Calling Syntax: SASK ["Display Prompt" | filename.txt] KeyList [/D /K /B]
You have the option to output a standard prompt, just as in Norton's
ASK. To do so, just enclose the prompt in double quotes ("). (See note
for C version), the program will then display that prompt and wait for
one of the keys in KeyList to be entered.
Returns: ERRORLEVEL set according to the key pressed, and it's
location in the KeyList
ERRORLEVEL set to 99 on any Errors including
Ctrl-C/Ctrl-Break.
Optional
Switches: /D Tells SupremeAsk to echo the key that was pressed
/K Tells SupremeAsk to suppress the keyboard buffer flush
/B Tells SupremeAsk to beep at an invalid key
The /K switch will come in handy should you want to allow the user to
answer a certain prompt by typing "ahead" of that actual display.
The /B switch is provided for users who wish to have the program emit an
audible error beep upon entry of an invalid key.
Examples: SASK "Continue? (Y/N)" yn
Displays <Continue? (Y/N)> and waits for either <Y>, <y>, <N>, <n>
to be pressed. ERRORLEVEL is set as follows:
<Y>,<y> ERRORLEVEL=1
<N>,<n> ERRORLEVEL=2
Any error ERRORLEVEL=99
SASK readme.txt nye
Displays the file README.TXT and waits for <Y>, <y>, <N>, <n>,
<E>, <e>. ERRORLEVEL is returned as follows:
<N>,<n> ERRORLEVEL=1
<Y>,<y> ERRORLEVEL=2
<E>,<e> ERRORLEVEL=3
Any error ERRORLEVEL=99
Note 1: To test ERRORLEVEL in batch files, make sure that you test for
the HIGHEST possible return value FIRST! Otherwise, the batch file will
execute the very first condition. Therefore use the following
construct:
if ERRORLEVEL=99
if ERRORLEVEL=98
if ERRORLEVEL=97
.
.
.
if ERRORLEVEL=1
Check your DOS manual for further information.
---------------------------------------------------------------------------
Changes since version 1.31:
There was only one small error in the program, thus the reason for not
updating it for over two years. When you typed SASK by itself to get the
calling syntax, the program told you that ERRORLEVEL was set from the KeyList
from right to left. This was WRONG. It is actually from left to right.
Changes since version 1.32:
Addition of /K, /D and /B command line switches.
---------------------------------------------------------------------------
License/Warranty:
There is NO warranty either expressed or implied. You use this
program at your own risk! You may NOT hold SupremeSoft accountable for
any damages that may occur either directly or indirectly from the use of
this program.
This program is distributed either by itself, or in a package of
Utilities. To register SupremeAsk and to get a copy of the latest version,
send $10.00 to the address below:
SupremeSoft
105 Deerfield Drive
Easton, CT 06612-1106
Corporate/Academic site licenses are available.
---------------------------------------------------------------------------
ASK is a Registered trademark of norton computing.
---------------------------------------------------------------------------