
MENU SYSTEM FOR GWBASIC FILES
Quote:
>Can anyone guide me to a MENU system to show all of my GWBASIC FILES.
>Thank You
>Bob
There is an old shareware DOS program called automenu that was popular before
Microsoft decided that "The Whole World Shall Be VISUAL!!". It could be
configured to list a set of programs and let you select one with the arrow
keys.
It should also be possible in GWBASIC. A SHELL command can write the names of
all .BAS files in a directory to a text file:
SHELL DIR *.BAS /s > DIRTEMP.TXT
The GW program can then open the file for input and display the filenames. It
is possible to use the mouse in GWBASIC, but that's another story. You can use
INKEY$ in a loop to wait for an arrow key, and move the cursor around the
screen. When the cursor is on the filename you want, the CSRLIN and POS
functions will get the row and column of the cursor, and SCREEN(row, column)
will get the character at that position. Once you have a filespec, you can use
RUN or CHAIN to execute it.
Another approach would be to use a keyboard macro processor, like the current
DOSKEY or the old CEDIT to define a macro that would do a DIR *.BAS, accept a
filename, and run GWBASIC with the /run switch to run that program. You would
have to type the filename, but this a lot easier to implement than a real menu
system.
**********************************************************************
If it's spam, it's a scam. Don't do business with Net abusers.