when dofCUTAPPEND, dofCOPYAPPEND // cut/copy to buffer
GotoBufferId(GetClipBoardId())
EmptyBuffer()
GotoBufferId(curr_id)
endcase
count = 0
PushPosition()
if Ask("Search for:", find_st, _FIND_HISTORY_) and Ask("Options [BGLIWX] (Back Global Local Ignore-case Words reg-eXp):", find_option_st, _FIND_OPTIONS_HISTORY_) and lFind(find_st, find_option_st)
old_sound = Set(sound, off)
repeat
count = count + 1
n = NumLines()
case choice
when dofDELLINE
DelLine()
when dofCUTAPPEND, dofCOPYAPPEND
PushBlock()
MarkLine()
MarkLine()
if choice == dofCUTAPPEND
Cut(_APPEND_)
else
Copy(_APPEND_)
endif
PopBlock()
endcase
if NumLines() < n
BegLine()
PrevChar()
endif
until not lRepeatFind()
Set(sound, old_sound)
endif
PopPosition()
Message(count, " occurrences found")
end
proc mSendFormFeed()
if not PrintChar(chr(12))
warn("Error sending formfeed")
endif
end
proc GetPrintDevice()
string s[48] = Query(PrintDevice)
if ask("Print Device:", s)
Set(PrintDevice, s)
endif
end
proc GetHeader()
string s[4] = Query(PrintHeader)
if ask("Print Header [FDTP] (Filename Date Time Page):", s)
Set(PrintHeader, s)
endif
end
proc GetFooter()
string s[4] = Query(PrintFooter)
if ask("Print Footer [FDTP] (Filename Date Time Page):", s)