OVERVIEW
========
SELECT is a progam that will allow the user to select from a
group of files to feed a specific command.
Suppose that you wanted to VUE a file but couldn't remember
the full name of the file. you could do something like the
following:
.SELECT VUE *.TXT
Select would then run through the directory and find the files
matching the wildcard spec and create a pop-up box on screen with
a list of all matching files. The user could then use the arrow
keys (or ^T, ^R, Home and End) to highlight the desired file.
Upon pressing Enter or Space, select would build and execute the
command. Press ESCape to cancel the selection process.
Since typing out the full command line stuff can get somewhat
tedious, this would be better put into a command or do file along
the following lines.
This would give a wildcard front end to the VUE command.
We use something similar to this for our less experienced users,
where we insert this into a menu system when someone wants to
edit or look at an existing file.
SWITCHES AND OPTIONS
====================
/R Select the starting row. Follow with a numeric value.
/C Select the starting column. Follow with numeric value.
/P Pause before executing the command. This basically just
feeds the command into the input buffer, allowing the
user to edit the command once it's built.
/S Skip on single file selection. When this switch is
selected and the program only finds a single matching
file, the selection box is skipped.
All switches MUST preceed the command and the wildcard
specification. In addition, if the command is to be longer than a
single word, then it must be enclosed in quotes. For example:
.SELECT "PRINT PRT1=" *.LST
Again this would work better in a .DO file as follows: