I'm coding a macro to find a specific occurence of a string using find command. Thing is , the string I have to search is some lines above the current cursor position. so I set the cursor position to the first line of the macro and gave a find command to search the string. It is giving a RC '4' , however after the execution of the macro ..... the string that I used to find is highlighted. i dont understand. please help.
Joined: 01 Sep 2006 Posts: 2092 Location: Silicon Valley
FIND NEXT starts from the current cursor location. Your previous FIND commands have moved the cursor beyond the text you are now looking for.
I suggest using FIND ALL to find it anywhere. OR use two successive FIND instructions. The first may take you to the end of the file and the second will wrap from the top. Or set the cursor to the first list before doing each FIND.