on 10.06.2008 13:13 vtech-macros Listmanager wrote:
> From: "Tom Hilton"
>
> [VISUAL EXIT]BOF()repeat(ALL) {Search("garbage",ERRBREAK)BOL()Del_Line()}
>
> I have copied it in exactly but whenever I press the desired shortcut for it,
> the cursor would just go to the beginning of the text documents.
Try removing the ",ERRBREAK" for a quick test.
I think the macro then will tell you that it couldn't find any "garbage".
Or enhance the macro for example like this:
[VISUAL EXIT]
BOF()
repeat(ALL) {
Search("garbage",NOERR)
if (Error_Match) {
Statline_Message("No more hits.")
break
}
BOL()
Del_Line()
}
Christian