02-24-2026, 12:57 PM
(02-24-2026, 12:49 PM)bplus Wrote: @SMcneill OK I didn't know you could do a Random Access without LEN in Open statement, was that in QB4.5?
@ahenry3068 dont see advantage of an index file, you still need to do a binary search to find the word fast, might as well do it with the original word file.
@PhilOfPerth didnt we do Random Access with Alchemy years ago! with a Binary word search off the Collins Dictionary.
The optimum approach will always vary for different applications. In this particular case Phil's approach caps the string length at 15 characters. The indexed
approach allows any length of word ! (or other string, I threw this code together, and could have done other stuff to filter a single word, but I just wanted to illustrate the approach)
Probably not such a big advantage on modern systems, but on older slower stuff going through a smaller index file to find a record was almost
always faster than searching the larger file !
Anyway just want to illustrate what can be a useful approach in some cases !

