Hi Brian,
Here is the start of a structured FB project using several modules,
each with a group of related routines.
Study it or not. That's up to you now.
Some of its features ...
a) Divide and conquer - small functions only, each only doing one task
as opposed to your last posting of your program that had one function
with over 440 lines!
b) SELECT and CASE structure used ...
- to analyse menu item selections
- to analyse which keyword is to be decoded
c) Use of a Fn to get various 'pieces' of your user instructions.
This is a simple parser without arrays for now but simplifies
your decode routines by not needing to use LEFT$() and MID$()
all the time. "Let the computer computer" so this routine
does much for you automatically.
d) I added a CIRCLE command to show a command with 3 parameters.
Many of your commands are omitted from this demo.
Add in what you want, if you use this at all.
Because this a a 'project' with several files that are automatically
combined together when run, I can't include it all in this e-mail.
Instead, go to my web site at this address where you can drag each
file to your desktop to download them.
http://gym-score-depot.ca/FB/
Or you can ignore it all and stay with the 'helter-skelter' code you
have been working with. Your choice.
HTH
Bye
- Stu