Won't be attempting to parse _bas files, but may try to parse _sav files. Don't think I can reliably parse an untokenised _bas file.
The intention is that when compiled it works on a program loaded into memory, so you can use it as you develop and run a program. As it's not compiled yet, run it in an SBASIC daughter job (type SBASIC, then load namecheck_bas - it then works against job 0 basic.)
As I can't reproduce the error you describe, could you let me have a copy of the basic program you were using, or perhaps print out the values of the variables in the line at which the error occurs (to help me work out what's happening)? Obviously the binary chop search routine is having a problem with something. This is the problem with lifting routines like this from my older programs where they may not be used in quite the same way. Values such as m,mid%,number% and search$. Have you done any changes to the namessc_txt file, for example?
Bit of a setback. There was a Windoze 10 update last night which has trashed a few things as QPC2 was open overnight, as Windoze updates do, so some time will be wasted sorting things out this morning. QXL.WIN was backed up so shouldn't be more than wasted time. Must learn not to leave QPC2 open on Tuesday nights at the mercy of M$
