REMLIST

by John McIntyre



Next up this month is a utility for BASIC programmers, and, let's face

it, if you're reading this column, you're bound to be a BASIC

programmer really.



Picture the scene then - you type in your program in chunks, and put a

REM at the top of each chunk, as all good programmers do. Inevitably

your program soon gets uncontrollably large, and the only way to

squeeze in all those much-needed extra lines is to renumber the

program. And then what? You don't know where all your subroutines

start, that's what. And that's annoying. Of course, that's where

John's utility comes in - you just type it in and save it with SAVE

"Filename", and then MERGE it into your large program, in which you

have conveniently left lines 9990 to 9999 empty. Type GOTO 9990, and

RemList asks you for a starting line. It then proceeds to search your

program for REM lines, and when it finds one it PRINTs it on the

screen (change the PRINTs to LPRINTs to send the output to a printer),

showing you the location of all your subroutines at a glance.



By the way, the routine doesn't recognise REMs after colons, so give

each REM its own line. And there you have it. Superbly useful,

stunningly easy to use - what more could you ask for?

