home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS018.DSK
/
FIND.SMM
< prev
next >
Wrap
INI File
|
1992-06-17
|
2KB
|
195 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
PostScript Printer
[port]
LPT1:
[lang]
1
[desc]
Find text in document
Lotus WPD Marketing
Intermediate
Replace
noautorun
708801313
11
641666413
19
1
0
0
0
0
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[l1]
0
[pg]
1
35 0 12 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
<:#284,9360>'
<:#284,9360>' Quickfind - ask for/remember a search string, then search.
<:#284,9360>' Begin search from beginning of file.
<:#284,9360>' As long as its is found put up a resume box.
<:#284,9360>' Tip: Selected text becomes the default search text
define IsOKToRun(menuname) GetInfo(217, 24, %1);
@Subhead@
FUNCTION QuickFind()
ignorekeyboard(2)
@Subhead@result=IsOKToRun(FindReplace)
@Subhead@if result !=1 exit function
@Subhead@endif
<:#284,9360>AllocGlobalVar("FindString", 1)
<:#284,9360>what = GetGlobalVar$("FindString")
<:#284,9360>shade = curshade$()
<:#284,9360>if shade <<<;> ""
<:#284,9360> what = shade
<:#284,9360>endif
<:#284,9360>what = Query$("Find:", what)
<:#284,9360>SetGlobalVar("FindString", what)
<:#284,9360>foundcount = 0
<:#284,9360>if not Replace(0, 0, 0, what, "")
<:#284,9360> message("{what} was not found.")
<:#284,9360> exit function
<:#284,9360>endif
<:#284,9360>while (1 = Replace(0, 0, 0, what, ""))
<:#284,9360> foundcount = foundcount + 1
<:#284,9360> UserControl("Resume to find next")
<:#284,9360> type("<[>esc]<[>right]")
<:#284,9360>wend
<:#284,9360>if (0 = foundcount)
<:#284,9360> message("{what} was not found.")
<:#284,9360>endif
<:#284,9360>END FUNCTION
>
[Embedded]
00001859
>
[macsum] 1
QuickFind 0 0 5 8
[macse]
14 QuickFind
0 32 2
0 1313 217 24 451
13
8 1
6 1
5 1
18 1
11 00000091
6 0
15
9
0 271 "FindString" 1
0 265 "FindString"
13
8 2
0 24
13
8 3
6 3
7 ""
18 1
11 00000197
6 3
8 2
0 1 "Find:" "{2}"
13
8 2
0 264 "FindString" "{2}"
5 0
8 4
2 488 1 0 0 0 "{2}" ""
13
1 3
11 00000345
0 3 "{2} was not found."
6 0
15
9
5 1
2 488 1 0 0 0 "{2}" ""
13
18 0
11 00000473
6 4
5 1
3 0
8 4
0 7 "Resume to find next"
0 6 "[27][39]"
10 00000345
5 0
6 4
18 0
11 00000528
0 3 "{2} was not found."
6 0
15
9
00001884