home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS018.DSK
/
INDEXALL.SMM
< prev
next >
Wrap
INI File
|
1992-06-16
|
3KB
|
201 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[master]
c:\amipro\dev\index.SAM
0
0
0
[prn]
PostScript Printer
[port]
LPT1:
[lang]
1
[desc]
Mark all instances of a word for index
Lotus WPD Marketing
Intermediate
While, MarkIndexWord
autorun
708733120
23
679166406
256
1
0
0
0
0
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[l1]
0
[pg]
1
37 0 0 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]
<:#293,9360>Macro by <+!>Charlie Pappas<-!>
<:#284,9360>
<:#284,9360>define GetActiveWindow() DllCall("user,GetActiveWindow,H")
<:#284,9360>define SetWindowText() DllCall("user,SetWindowText,IHC", %1, %2)
<:#284,9360>define TitleBarMsg() SetWindowText(GetActiveWindow(), %1)
<:#284,9360>
@Function@<:#293,9360>function<:f,,0,0,0> indexall()
<:#284,9360>ignorekeyboard(2)
StatusBarMsg("Adding Index All to Edit/Mark Text menu")
<:#284,9360>rmac = getrunningmacrofile$()
<:#284,9360>deletemenuitem<:f,,0,0,0>(1, "&Edit", "&Mark Text", "Mark Index &All")
<:#568,9360>insertcascademenuitem(1, "&Edit", "&Mark Text", 1, "Mark Index &All", "{rmac}!idx", "Mark all for index.")
StatusBarMsg("")
'TitleBarMsg("Ami Pro")
<:#284,9360>StatusBarMsg("")
<:#284,9360>end function
<:#284,9360>
@Function@<:#293,9360>function<:f,,0,0,0> idx()
<:#284,9360>ignorekeyboard(2)
<:#284,9360>defstr word;
<:#284,9360>if assign(&word, curshade$()) = ""
<:#284,9360> message("Select word to mark for index.")
<:#284,9360> return 0
<:#284,9360>endif
<:#284,9360>type("<[>esc]<[>esc]<[>esc]<[>ctrlhome]")
<:#284,9360>if (80 << len (word))
<:#284,9360> word=left$(word, 79)
<:#284,9360>endif
<:#284,9360>while<:f,,0,0,0> (1)
<:#284,9360> go = replace("", "", "", word, "")
<:#284,9360> if go <<<;> 1
<:#284,9360> break
<:#284,9360> endif
<:#284,9360> FieldAdd("Index ""{word} "" #")
<:#284,9360>wend
<:#284,9360>end function
<:#284,9360>
>
[Embedded]
00002157
>
[macsum] 2
indexall 0 0 2 6
idx 248 0 3 17
[macse]
14 indexall
0 32 2
0 789 "Adding Index All to Edit/Mark Text menu"
0 802
13
8 1
0 520 1 "&Edit" "&Mark Text" "Mark Index &All"
0 529 1 "&Edit" "&Mark Text" 1 "Mark Index &All" "{1}!idx" "Mark all for index."
0 789 ""
0 789 ""
6 0
15
9
14 idx
0 32 2
0 24
13
0 805 &1 [X]
13
7 ""
18 0
11 00000119
0 3 "Select word to mark for index."
5 0
15
9
0 6 "[27][27][27][16420]"
5 80
0 14 "{1}"
13
18 5
11 00000212
0 806 "{1}" 79
13
8 1
5 1
11 00000349
2 488 1 "" "" "" "{1}" ""
13
8 2
6 2
5 1
18 1
11 00000308
10 00000349
2 572 1 "Index ""{1} "" #"
10 00000212
6 0
15
9
00002182