Hi, I encountered a looping question. I have a text file in which there are many tokens separated by ",". Where should I place the "NO RECORD FOUND." code if there is no console input matching with token in text file? It will be displayed even though there is a matching record. I tried to use else block after if block, but still no use because of the 2nd while loop.
Suggestion - add a boolean flag (initialized to false before outer loop) and set it to true only when a match is found. Then after the outer loop completes, display the error message if your flag is still false.
Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
Joined: Nov 12, 2001
Thanks for your help. It works now. Regards Andrew