On Mon, 18 Oct 2004 10:59:00 -0400, Galen Gautreaux wrote:
>This works, but it skips every other record. Why?
Because I made a mistake?!
Try it with the following:
Begin_Of_File
while (! At_EoF) { // every line up to end
Goto_Pos(EoL_Pos) // not real EOL, but virtual one
if (Match(" ")==0) { // is there a space character?
Search("|! ", REVERSE+NOERR+ADVANCE) // search last no-space
Replace_Block(" ", "@", Cur_Pos, EoL_Pos+1, ALL+NOERR)
} else {
Line(1, NOERR)
}
}
Christian