home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
text
/
edit
/
FrexxEdA.lha
/
FrexxEd
/
fpl
/
SearchCount.FPL
< prev
next >
Wrap
Text File
|
1995-07-19
|
550b
|
25 lines
export int SearchCount()
{
int BufferID=DuplicateEntry();
int foundcount=0;
int currentbuffer=GetBufferID();
if (BufferID) {
CurrentBuffer(BufferID);
GotoLine(1, 0);
while (Search()>=0)
foundcount++;
CurrentBuffer(currentbuffer);
Kill(BufferID);
Request(joinstr("\"", ReadInfo("search_buffer"), "\" is found ",
ltostr(foundcount), " times!"),
"SearchCount", "Understood!");
}
}
/* Assign "amiga control s" to the function */
AssignKey("SearchCount();", "amiga control s");