Suggestions for Tim Baehr's search program: 1. test for $ws instead of $fp to allow user to search for file names in directories. 2. add tab char to string of acceptable search strings. 3. preserve the last search arg on a permanent sgt on F9 exit (but not esc) such that user can repeat the search across files without having to re-enter. - doesn't interfere with normal operation if 1st key hit is anything but the big enter key. You could have the user pick the perm sgt to use and initialize it in startup to avoid an error if it's empty - or you could hope that a user who hadn't searched for anything lately would not hit the <ÄÙ key right off the bat... 4. modify user prompt when dir on screen to allow user to call selected file w/ big enter key. 5. Consider (not implemented - just a thought) David Auerbach's algorithm for this type of search has a different logic when the search craps out. He empties the search argument, returns to home base, and begins a new search starting with the first character that caused the search to fail. This would allow a user to hit "t" followed by "T" when that's what he meant to begin with. Instead of just talking about it - I've attached your srch2.pgm with the additional code commented. Joe Solla d012362c@xxxxxxxxAttachment: xsrch.zip
Description: Tim's modified srch2.pgm