home *** CD-ROM | disk | FTP | other *** search
INI File | 1991-08-19 | 3.2 KB | 274 lines |
- [ver]
- 4
- [sty]
- ~macro.sty
- [files]
- [charset]
- 82
- ANSI (Windows, IBM CP 1252)
- [revisions]
- 0
- [prn]
- PostScript Printer
- [lang]
- 1
- [desc]
- Find and replace across multiple files with FREPLACE.
- Lotus WPD Marketing
- Intermediate
- Replace, FileOpen, Local Arrays
-
- 682670342
- 16
- 676699899
- 69
- 1
- 0
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- [fopts]
- 0
- 1
- 0
- 0
- [lnopts]
- 2
- Body Text
- 1
- [docopts]
- 5
- 2
- [l1]
- 0
- [edoc]
- Macro by <+!>Charlie Pappas<-!>
-
-
- function freplace()
-
- again:
-
- filledit(9001, strcat$(GetDocPath$(), "*.sam"))
-
- box = dialogbox(".", "files")
-
- if box <<<;> 1
-
- return 0
-
- endif
-
- findit = getdialogfield$(8007)
-
- replaceit = getdialogfield$(8008)
-
- if getdialogfield$(8001) = ""
-
- message("select files from the list")
-
- goto again
-
- endif
-
- cdir = getcurrentdir$()
-
- dim files(100)
-
- for i = 1 to 100
-
- file = strfield$(getdialogfield$(8001), i, " ")
-
- if file = ""
-
- break
-
- endif
-
- files(i) = file
-
- next
-
- for j = 1 to i - 1
-
- file = files(j)
-
- if j = 1
-
- opts = 1
-
- else
-
- opts = 129
-
- endif
-
- FileOpen(strcat$(cdir, file), opts "")
-
- replace("", "", 1024, findit, replaceit)
-
- save()
-
- next
-
- fileclose()
-
- end function
-
-
- DIALOG files
-
- -2134376448 10 88 20 184 136 "" "" "Find & Replace Across Multiple Files"
-
- FONT 8 "Helv"
-
- 6 58 76 8 1000 1342177280 "static" "&Search Across Files:" 0
-
- 6 6 60 8 1003 1342308352 "static" "F&ind:" 0
-
- 6 16 120 12 8007 1350631552 "edit" "" 0
-
- 6 30 60 8 1004 1342308352 "static" "&Replace With:" 0
-
- 6 40 120 12 8008 1350631552 "edit" "" 0
-
- 6 68 66 64 9001 1352728587 "listbox" "" 0
-
- 138 7 40 14 1 1342373889 "button" "OK" 0
-
- 138 23 40 14 2 1342373888 "button" "Cancel" 0
-
- 92 100 48 1 8001 1342177280 "static" "" 0
-
- 80 68 96 8 7999 1342177280 "static" "" 0
-
- END DIALOG
-
-
- >
-
- [Embedded]
- 00001864
- >
- [macsum] 2
- freplace 0 0 10 2
- files 786 0 -1 38
- [macse]
- 14 freplace
- 0 268
- 13
- 0 16 [X] "*.sam"
- 13
- 0 31 9001 [X]
- 0 26 "." "files"
- 13
- 8 1
- 6 1
- 5 1
- 18 1
- 11 00000129
- 5 0
- 15
- 9
- 0 27 8007
- 13
- 8 2
- 0 27 8008
- 13
- 8 3
- 0 27 8001
- 13
- 7 ""
- 18 0
- 11 00000256
- 0 3 "select files from the list"
- 10 00000013
- 0 290
- 13
- 8 4
- 5 100
- 21 5 [X]
- 5 1
- 8 6
- 5 100
- 6 6
- 18 2
- 12 00000376
- 10 00000492
- 5 1
- 6 6
- 3 0
- 8 6
- 10 00000299
- 0 27 8001
- 13
- 0 20 [X] "{6}" " "
- 13
- 8 7
- 6 7
- 7 ""
- 18 0
- 11 00000463
- 10 00000492
- 6 6
- 6 7
- 23 5
- 10 00000343
- 5 1
- 8 8
- 6 6
- 5 1
- 3 1
- 6 8
- 18 2
- 12 00000587
- 10 00000765
- 5 1
- 6 8
- 3 0
- 8 8
- 10 00000502
- 6 8
- 22 5
- 8 7
- 6 8
- 5 1
- 18 0
- 11 00000655
- 5 1
- 8 9
- 10 00000667
- 5 129
- 8 9
- 0 16 "{4}" "{7}"
- 13
- 2 102 1 [X] "{9}" ""
- 2 488 1 "" "" 1024 "{2}" "{3}"
- 2 103 1
- 10 00000554
- 2 147 1
- 6 0
- 15
- 9
- DIALOG files
- -2134376448 10 88 20 184 136 "" "" "Find & Replace Across Multiple Files"
- FONT 8 "Helv"
- 6 58 76 8 1000 1342177280 "static" "&Search Across Files:" 0
- 6 6 60 8 1003 1342308352 "static" "F&ind:" 0
- 6 16 120 12 8007 1350631552 "edit" "" 0
- 6 30 60 8 1004 1342308352 "static" "&Replace With:" 0
- 6 40 120 12 8008 1350631552 "edit" "" 0
- 6 68 66 64 9001 1352728587 "listbox" "" 0
- 138 7 40 14 1 1342373889 "button" "OK" 0
- 138 23 40 14 2 1342373888 "button" "Cancel" 0
- 92 100 48 1 8001 1342177280 "static" "" 0
- 80 68 96 8 7999 1342177280 "static" "" 0
- 00001889
-