home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…rary 5 (Internal Edition) / Apple R&P Lib Internal v5.0.iso / 2-Graphics / Apple Graphics Source / Apple Graphics Source 3.0 next >
MacBinary  |  1990-08-08  |  948.3 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Apple Graphics Source 3.0

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Banyans VINES patch data (other/banyansVINESPatchData) ext Unsupported
1% dexvert PCP archive log (other/pcpArchiveLog) ext Unsupported
100% file MacBinary II, inited, Fri Feb 16 12:46:51 1990, modified Tue Aug 7 20:50:39 1990, creator HyperCard, type HyperCard stack, 818688 bytes "Apple Graphics Source 3.0" , at 0xc7e80 152173 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 19 41 70 70 6c 65 20 | 47 72 61 70 68 69 63 73 |..Apple |Graphics|
|00000010| 20 53 6f 75 72 63 65 20 | 33 2e 30 00 00 00 00 00 | Source |3.0.....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 0c 7e 00 00 | 02 52 6d a2 01 ed 0b a2 |.....~..|.Rm.....|
|00000060| e5 12 5f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.._.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f6 aa 00 00 |........|........|
|00000080| 00 00 7a 00 53 54 41 4b | ff ff ff ff 66 a7 c4 b4 |..z.STAK|....f...|
|00000090| 00 00 00 08 00 0c 7e 00 | 00 00 7a 00 00 00 00 00 |......~.|..z.....|
|000000a0| 00 00 00 20 00 00 00 03 | 00 00 0e 22 00 00 02 6d |... ....|..."...m|
|000000b0| 00 00 0d 1c 00 00 09 66 | 00 00 00 00 00 00 00 00 |.......f|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 05 00 00 90 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 01 25 80 00 01 25 80 00 | 01 25 80 00 01 25 80 00 |.%...%..|.%...%..|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 2d 2d a5 a5 20 53 59 53 | 54 45 4d 20 4d 45 53 53 |--.. SYS|TEM MESS|
|00000690| 41 47 45 53 0d 0d 6f 6e | 20 6f 70 65 6e 53 74 61 |AGES..on| openSta|
|000006a0| 63 6b 0d 67 6c 6f 62 61 | 6c 20 66 69 72 73 74 54 |ck.globa|l firstT|
|000006b0| 69 6d 65 41 47 53 2c 61 | 72 74 4d 61 6e 61 67 65 |imeAGS,a|rtManage|
|000006c0| 6d 65 6e 74 2c 66 69 6e | 64 50 61 72 61 6d 73 2c |ment,fin|dParams,|
|000006d0| 6c 61 73 74 46 69 6e 64 | 54 65 72 6d 73 0d 69 66 |lastFind|Terms.if|
|000006e0| 20 74 68 65 20 76 65 72 | 73 69 6f 6e 20 3c 20 31 | the ver|sion < 1|
|000006f0| 2e 32 20 74 68 65 6e 0d | 64 69 61 6c 6f 67 49 74 |.2 then.|dialogIt|
|00000700| 20 22 53 6f 72 72 79 2e | 20 59 6f 75 20 6e 65 65 | "Sorry.| You nee|
|00000710| 64 20 48 79 70 65 72 43 | 61 72 64 20 76 65 72 73 |d HyperC|ard vers|
|00000720| 69 6f 6e 20 31 2e 32 20 | 6f 72 20 67 72 65 61 74 |ion 1.2 |or great|
|00000730| 65 72 2e 22 20 c2 0d 26 | 26 20 22 59 6f 75 20 61 |er." ..&|& "You a|
|00000740| 72 65 20 75 73 69 6e 67 | 20 76 65 72 73 69 6f 6e |re using| version|
|00000750| 22 20 26 20 74 68 65 20 | 76 65 72 73 69 6f 6e 20 |" & the |version |
|00000760| 26 20 22 2e 22 0d 65 6e | 64 20 69 66 0d 69 66 20 |& ".".en|d if.if |
|00000770| 66 69 72 73 74 54 69 6d | 65 41 47 53 20 69 73 20 |firstTim|eAGS is |
|00000780| 65 6d 70 74 79 20 74 68 | 65 6e 0d 2d 2d 20 54 68 |empty th|en.-- Th|
|00000790| 69 73 20 69 73 20 74 68 | 65 20 66 69 72 73 74 20 |is is th|e first |
|000007a0| 74 69 6d 65 20 79 6f 75 | 20 68 61 76 65 20 6f 70 |time you| have op|
|000007b0| 65 6e 65 64 20 74 68 65 | 20 73 74 61 63 6b 20 69 |ened the| stack i|
|000007c0| 6e 20 74 68 69 73 0d 2d | 2d 20 48 79 70 65 72 43 |n this.-|- HyperC|
|000007d0| 61 72 64 20 73 65 73 73 | 69 6f 6e 2e 0d 70 75 74 |ard sess|ion..put|
|000007e0| 20 66 61 6c 73 65 20 69 | 6e 74 6f 20 61 72 74 4d | false i|nto artM|
|000007f0| 61 6e 61 67 65 6d 65 6e | 74 0d 65 6e 64 20 69 66 |anagemen|t.end if|
|00000800| 0d 73 68 6f 77 20 6d 65 | 6e 75 62 61 72 0d 70 75 |.show me|nubar.pu|
|00000810| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 66 69 6e |t empty |into fin|
|00000820| 64 50 61 72 61 6d 73 0d | 70 75 74 20 65 6d 70 74 |dParams.|put empt|
|00000830| 79 20 69 6e 74 6f 20 6c | 61 73 74 46 69 6e 64 54 |y into l|astFindT|
|00000840| 65 72 6d 73 0d 70 61 73 | 73 20 6f 70 65 6e 53 74 |erms.pas|s openSt|
|00000850| 61 63 6b 0d 65 6e 64 20 | 6f 70 65 6e 53 74 61 63 |ack.end |openStac|
|00000860| 6b 0d 0d 6f 6e 20 63 6c | 6f 73 65 53 74 61 63 6b |k..on cl|oseStack|
|00000870| 0d 67 6c 6f 62 61 6c 20 | 61 72 74 4d 61 6e 61 67 |.global |artManag|
|00000880| 65 6d 65 6e 74 2c 74 61 | 67 67 65 64 4c 69 73 74 |ement,ta|ggedList|
|00000890| 0d 73 61 76 65 43 68 61 | 6e 67 65 73 20 74 72 75 |.saveCha|nges tru|
|000008a0| 65 2c 74 61 67 67 65 64 | 4c 69 73 74 2c 74 72 75 |e,tagged|List,tru|
|000008b0| 65 0d 69 66 20 61 72 74 | 4d 61 6e 61 67 65 6d 65 |e.if art|Manageme|
|000008c0| 6e 74 20 74 68 65 6e 0d | 73 65 74 20 63 75 72 73 |nt then.|set curs|
|000008d0| 6f 72 20 74 6f 20 62 75 | 73 79 0d 6c 6f 63 6b 20 |or to bu|sy.lock |
|000008e0| 73 63 72 65 65 6e 0d 73 | 65 74 20 6c 6f 63 6b 4d |screen.s|et lockM|
|000008f0| 65 73 73 61 67 65 73 20 | 74 6f 20 74 72 75 65 0d |essages |to true.|
|00000900| 73 65 74 20 6c 6f 63 6b | 52 65 63 65 6e 74 20 74 |set lock|Recent t|
|00000910| 6f 20 74 72 75 65 0d 67 | 6f 20 62 67 20 22 74 68 |o true.g|o bg "th|
|00000920| 65 20 63 6f 6c 6c 65 63 | 74 69 6f 6e 22 0d 73 65 |e collec|tion".se|
|00000930| 6e 64 20 22 61 64 6d 69 | 6e 45 6c 65 6d 65 6e 74 |nd "admi|nElement|
|00000940| 73 20 66 61 6c 73 65 22 | 20 74 6f 20 74 68 69 73 |s false"| to this|
|00000950| 20 62 67 0d 65 6e 64 20 | 69 66 0d 70 61 73 73 20 | bg.end |if.pass |
|00000960| 63 6c 6f 73 65 53 74 61 | 63 6b 0d 65 6e 64 20 63 |closeSta|ck.end c|
|00000970| 6c 6f 73 65 53 74 61 63 | 6b 0d 0d 6f 6e 20 61 72 |loseStac|k..on ar|
|00000980| 72 6f 77 4b 65 79 20 77 | 68 69 63 68 4b 65 79 0d |rowKey w|hichKey.|
|00000990| 73 65 74 20 74 65 78 74 | 41 72 72 6f 77 73 20 74 |set text|Arrows t|
|000009a0| 6f 20 6e 6f 74 20 28 73 | 65 6c 65 63 74 65 64 43 |o not (s|electedC|
|000009b0| 68 75 6e 6b 28 29 20 69 | 73 20 65 6d 70 74 79 29 |hunk() i|s empty)|
|000009c0| 0d 70 61 73 73 20 61 72 | 72 6f 77 6b 65 79 0d 65 |.pass ar|rowkey.e|
|000009d0| 6e 64 20 61 72 72 6f 77 | 4b 65 79 0d 0d 6f 6e 20 |nd arrow|Key..on |
|000009e0| 64 6f 6d 65 6e 75 20 6d | 65 6e 75 20 20 20 20 20 |domenu m|enu |
|000009f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000a00| 20 20 2d 2d 2f 2f 20 41 | 64 64 65 64 20 62 79 20 | --// A|dded by |
|00000a10| 4d 65 64 69 6f 72 2c 20 | 49 6e 63 2e 20 38 2f 38 |Medior, |Inc. 8/8|
|00000a20| 2f 39 30 0d 67 6c 6f 62 | 61 6c 20 52 50 53 74 61 |/90.glob|al RPSta|
|00000a30| 63 6b 4e 61 6d 65 0d 69 | 66 20 6d 65 6e 75 20 69 |ckName.i|f menu i|
|00000a40| 73 20 69 6e 20 22 48 6f | 6d 65 2c 51 75 69 74 20 |s in "Ho|me,Quit |
|00000a50| 48 79 70 65 72 43 61 72 | 64 22 20 61 6e 64 20 52 |HyperCar|d" and R|
|00000a60| 50 53 74 61 63 6b 4e 61 | 6d 65 20 69 73 20 6e 6f |PStackNa|me is no|
|00000a70| 74 20 65 6d 70 74 79 20 | 74 68 65 6e 0d 73 65 74 |t empty |then.set|
|00000a80| 20 63 75 72 73 6f 72 20 | 74 6f 20 77 61 74 63 68 | cursor |to watch|
|00000a90| 0d 70 75 74 20 52 50 53 | 74 61 63 6b 4e 61 6d 65 |.put RPS|tackName|
|00000aa0| 20 69 6e 74 6f 20 73 68 | 6f 72 74 6e 61 6d 65 0d | into sh|ortname.|
|00000ab0| 72 65 70 65 61 74 20 75 | 6e 74 69 6c 20 6f 66 66 |repeat u|ntil off|
|00000ac0| 73 65 74 28 22 3a 22 2c | 73 68 6f 72 74 6e 61 6d |set(":",|shortnam|
|00000ad0| 65 29 20 3d 20 30 0d 64 | 65 6c 65 74 65 20 63 68 |e) = 0.d|elete ch|
|00000ae0| 61 72 20 31 20 74 6f 20 | 6f 66 66 73 65 74 28 22 |ar 1 to |offset("|
|00000af0| 3a 22 2c 73 68 6f 72 74 | 6e 61 6d 65 29 20 6f 66 |:",short|name) of|
|00000b00| 20 73 68 6f 72 74 6e 61 | 6d 65 0d 65 6e 64 20 72 | shortna|me.end r|
|00000b10| 65 70 65 61 74 0d 64 65 | 6c 65 74 65 20 6c 61 73 |epeat.de|lete las|
|00000b20| 74 20 63 68 61 72 20 6f | 66 20 73 68 6f 72 74 6e |t char o|f shortn|
|00000b30| 61 6d 65 0d 61 6e 73 77 | 65 72 20 22 54 68 69 73 |ame.answ|er "This|
|00000b40| 20 77 69 6c 6c 20 72 65 | 74 75 72 6e 20 74 6f 20 | will re|turn to |
|00000b50| 22 26 73 68 6f 72 74 6e | 61 6d 65 26 22 2e 22 20 |"&shortn|ame&"." |
|00000b60| 77 69 74 68 20 22 43 61 | 6e 63 65 6c 22 20 6f 72 |with "Ca|ncel" or|
|00000b70| 20 22 4f 4b 22 0d 69 66 | 20 69 74 20 69 73 20 22 | "OK".if| it is "|
|00000b80| 43 61 6e 63 65 6c 22 20 | 74 68 65 6e 20 65 78 69 |Cancel" |then exi|
|00000b90| 74 20 64 6f 6d 65 6e 75 | 0d 73 65 74 20 63 75 72 |t domenu|.set cur|
|00000ba0| 73 6f 72 20 74 6f 20 77 | 61 74 63 68 0d 6c 6f 63 |sor to w|atch.loc|
|00000bb0| 6b 20 73 63 72 65 65 6e | 0d 67 6f 20 52 50 53 74 |k screen|.go RPSt|
|00000bc0| 61 63 6b 4e 61 6d 65 0d | 75 6e 6c 6f 63 6b 20 73 |ackName.|unlock s|
|00000bd0| 63 72 65 65 6e 20 77 69 | 74 68 20 64 69 73 73 6f |creen wi|th disso|
|00000be0| 6c 76 65 0d 65 78 69 74 | 20 64 6f 6d 65 6e 75 0d |lve.exit| domenu.|
|00000bf0| 65 6c 73 65 20 70 61 73 | 73 20 64 6f 4d 65 6e 75 |else pas|s doMenu|
|00000c00| 0d 65 6e 64 20 64 6f 6d | 65 6e 75 0d 2d 2d a5 a5 |.end dom|enu.--..|
|00000c10| 20 4d 45 53 53 41 47 45 | 20 48 41 4e 44 4c 45 52 | MESSAGE| HANDLER|
|00000c20| 53 0d 0d 6f 6e 20 67 6f | 53 74 61 63 6b 20 77 68 |S..on go|Stack wh|
|00000c30| 69 63 68 53 74 61 63 6b | 0d 69 66 20 74 68 65 20 |ichStack|.if the |
|00000c40| 68 69 6c 69 74 65 20 6f | 66 20 74 68 65 20 74 61 |hilite o|f the ta|
|00000c50| 72 67 65 74 20 74 68 65 | 6e 20 65 78 69 74 20 67 |rget the|n exit g|
|00000c60| 6f 53 74 61 63 6b 0d 73 | 65 74 20 6c 6f 63 6b 4d |oStack.s|et lockM|
|00000c70| 65 73 73 61 67 65 73 20 | 74 6f 20 74 72 75 65 0d |essages |to true.|
|00000c80| 73 65 74 20 6c 6f 63 6b | 52 65 63 65 6e 74 20 74 |set lock|Recent t|
|00000c90| 6f 20 74 72 75 65 0d 6c | 6f 63 6b 20 73 63 72 65 |o true.l|ock scre|
|00000ca0| 65 6e 0d 67 6f 20 73 74 | 61 63 6b 20 22 41 70 70 |en.go st|ack "App|
|00000cb0| 6c 65 20 47 72 61 70 68 | 69 63 73 20 2d 20 22 20 |le Graph|ics - " |
|00000cc0| 26 20 77 68 69 63 68 53 | 74 61 63 6b 0d 61 6e 73 |& whichS|tack.ans|
|00000cd0| 77 65 72 20 22 43 68 65 | 63 6b 20 74 68 65 20 73 |wer "Che|ck the s|
|00000ce0| 74 61 63 6b 20 6e 61 6d | 65 20 74 6f 20 73 65 65 |tack nam|e to see|
|00000cf0| 20 69 66 20 69 74 73 20 | 63 68 61 6e 67 65 64 2e | if its |changed.|
|00000d00| 22 0d 67 6f 20 62 67 20 | 22 74 68 65 20 63 6f 6c |".go bg |"the col|
|00000d10| 6c 65 63 74 69 6f 6e 22 | 0d 75 6e 6c 6f 63 6b 20 |lection"|.unlock |
|00000d20| 73 63 72 65 65 6e 20 77 | 69 74 68 20 76 69 73 75 |screen w|ith visu|
|00000d30| 61 6c 20 65 66 66 65 63 | 74 20 64 69 73 73 6f 6c |al effec|t dissol|
|00000d40| 76 65 0d 6f 70 65 6e 42 | 61 63 6b 67 72 6f 75 6e |ve.openB|ackgroun|
|00000d50| 64 0d 6f 70 65 6e 43 61 | 72 64 0d 65 6e 64 20 67 |d.openCa|rd.end g|
|00000d60| 6f 53 74 61 63 6b 0d 0d | 6f 6e 20 61 64 6d 69 6e |oStack..|on admin|
|00000d70| 0d 67 6c 6f 62 61 6c 20 | 61 72 74 4d 61 6e 61 67 |.global |artManag|
|00000d80| 65 6d 65 6e 74 0d 70 75 | 74 20 74 72 75 65 20 69 |ement.pu|t true i|
|00000d90| 6e 74 6f 20 61 72 74 4d | 61 6e 61 67 65 6d 65 6e |nto artM|anagemen|
|00000da0| 74 0d 73 65 6e 64 20 22 | 61 64 6d 69 6e 45 6c 65 |t.send "|adminEle|
|00000db0| 6d 65 6e 74 73 20 74 72 | 75 65 22 20 74 6f 20 74 |ments tr|ue" to t|
|00000dc0| 68 69 73 20 62 67 0d 69 | 66 20 74 68 65 20 63 61 |his bg.i|f the ca|
|00000dd0| 6e 74 4d 6f 64 69 66 79 | 20 6f 66 20 74 68 69 73 |ntModify| of this|
|00000de0| 20 73 74 61 63 6b 20 74 | 68 65 6e 0d 64 69 61 6c | stack t|hen.dial|
|00000df0| 6f 67 49 74 20 22 54 6f | 20 75 73 65 20 74 68 65 |ogIt "To| use the|
|00000e00| 20 64 65 76 65 6c 6f 70 | 65 72 20 62 75 74 74 6f | develop|er butto|
|00000e10| 6e 73 20 69 6e 20 74 68 | 65 20 62 61 63 6b 67 72 |ns in th|e backgr|
|00000e20| 6f 75 6e 64 22 20 26 26 | 20 c2 0d 22 54 68 65 20 |ound" &&| .."The |
|00000e30| 43 6f 6c 6c 65 63 74 69 | 6f 6e 2c 20 6d 6f 76 65 |Collecti|on, move|
|00000e40| 20 74 68 69 73 20 73 74 | 61 63 6b 20 74 6f 20 61 | this st|ack to a|
|00000e50| 6e 20 75 6e 6c 6f 63 6b | 65 64 20 76 6f 6c 75 6d |n unlock|ed volum|
|00000e60| 65 2e 22 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 61 |e.".end |if.end a|
|00000e70| 64 6d 69 6e 0d 0d 6f 6e | 20 63 6c 6f 73 65 41 64 |dmin..on| closeAd|
|00000e80| 6d 69 6e 0d 67 6c 6f 62 | 61 6c 20 61 72 74 4d 61 |min.glob|al artMa|
|00000e90| 6e 61 67 65 6d 65 6e 74 | 0d 70 75 74 20 66 61 6c |nagement|.put fal|
|00000ea0| 73 65 20 69 6e 74 6f 20 | 61 72 74 4d 61 6e 61 67 |se into |artManag|
|00000eb0| 65 6d 65 6e 74 0d 73 65 | 6e 64 20 22 61 64 6d 69 |ement.se|nd "admi|
|00000ec0| 6e 45 6c 65 6d 65 6e 74 | 73 20 66 61 6c 73 65 22 |nElement|s false"|
|00000ed0| 20 74 6f 20 74 68 69 73 | 20 62 67 0d 65 6e 64 20 | to this| bg.end |
|00000ee0| 63 6c 6f 73 65 41 64 6d | 69 6e 0d 0d 6f 6e 20 73 |closeAdm|in..on s|
|00000ef0| 65 6c 65 63 74 4c 69 6e | 65 20 77 68 69 63 68 4c |electLin|e whichL|
|00000f00| 69 6e 65 2c 77 68 69 63 | 68 46 6c 64 0d 2d 2d 77 |ine,whic|hFld.--w|
|00000f10| 68 69 63 68 4c 69 6e 65 | 20 69 73 20 61 20 77 68 |hichLine| is a wh|
|00000f20| 6f 6c 65 4e 75 6d 62 65 | 72 20 61 6e 64 20 77 68 |oleNumbe|r and wh|
|00000f30| 69 63 68 46 6c 64 20 69 | 73 20 74 68 65 20 73 68 |ichFld i|s the sh|
|00000f40| 6f 72 74 20 6e 61 6d 65 | 20 6f 66 20 61 20 66 6c |ort name| of a fl|
|00000f50| 64 2e 0d 69 66 20 77 68 | 69 63 68 4c 69 6e 65 20 |d..if wh|ichLine |
|00000f60| 3d 20 65 6d 70 74 79 20 | 4f 52 20 77 68 69 63 68 |= empty |OR which|
|00000f70| 46 6c 64 20 3d 20 65 6d | 70 74 79 20 74 68 65 6e |Fld = em|pty then|
|00000f80| 20 65 78 69 74 20 73 65 | 6c 65 63 74 4c 69 6e 65 | exit se|lectLine|
|00000f90| 0d 70 75 74 20 6c 69 6e | 65 20 77 68 69 63 68 4c |.put lin|e whichL|
|00000fa0| 69 6e 65 20 6f 66 20 66 | 6c 64 20 77 68 69 63 68 |ine of f|ld which|
|00000fb0| 46 6c 64 20 69 6e 74 6f | 20 74 68 65 54 65 78 74 |Fld into| theText|
|00000fc0| 0d 69 66 20 74 68 65 54 | 65 78 74 20 69 73 20 6e |.if theT|ext is n|
|00000fd0| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 70 75 |ot empty| then.pu|
|00000fe0| 74 20 28 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |t (numbe|r of cha|
|00000ff0| 72 73 20 6f 66 20 6c 69 | 6e 65 20 31 20 74 6f 20 |rs of li|ne 1 to |
|00001000| 77 68 69 63 68 4c 69 6e | 65 20 6f 66 20 66 6c 64 |whichLin|e of fld|
|00001010| 20 77 68 69 63 68 46 6c | 64 29 20 c2 0d 2b 20 31 | whichFl|d) ..+ 1|
|00001020| 20 69 6e 74 6f 20 65 6e | 64 43 68 61 72 0d 73 65 | into en|dChar.se|
|00001030| 6c 65 63 74 20 63 68 61 | 72 20 28 65 6e 64 43 68 |lect cha|r (endCh|
|00001040| 61 72 20 2d 20 6c 65 6e | 67 74 68 20 28 74 68 65 |ar - len|gth (the|
|00001050| 54 65 78 74 29 29 20 74 | 6f 20 65 6e 64 43 68 61 |Text)) t|o endCha|
|00001060| 72 20 6f 66 20 66 6c 64 | 20 77 68 69 63 68 46 6c |r of fld| whichFl|
|00001070| 64 0d 77 61 69 74 20 35 | 0d 65 6e 64 20 69 66 0d |d.wait 5|.end if.|
|00001080| 65 6e 64 20 73 65 6c 65 | 63 74 4c 69 6e 65 0d 0d |end sele|ctLine..|
|00001090| 6f 6e 20 73 74 6f 70 42 | 74 6e 53 74 61 74 75 73 |on stopB|tnStatus|
|000010a0| 20 62 6f 6f 6c 65 61 6e | 0d 73 65 74 20 76 69 73 | boolean|.set vis|
|000010b0| 69 62 6c 65 20 6f 66 20 | 66 6c 64 20 22 73 74 61 |ible of |fld "sta|
|000010c0| 74 75 73 22 20 74 6f 20 | 62 6f 6f 6c 65 61 6e 0d |tus" to |boolean.|
|000010d0| 65 6e 64 20 73 74 6f 70 | 42 74 6e 53 74 61 74 75 |end stop|BtnStatu|
|000010e0| 73 0d 0d 6f 6e 20 73 68 | 6f 77 50 72 6f 67 72 65 |s..on sh|owProgre|
|000010f0| 73 73 20 77 68 69 63 68 | 54 65 78 74 2c 20 77 68 |ss which|Text, wh|
|00001100| 69 63 68 50 65 72 63 65 | 6e 74 0d 70 75 74 20 77 |ichPerce|nt.put w|
|00001110| 68 69 63 68 54 65 78 74 | 20 26 26 20 22 28 22 20 |hichText| && "(" |
|00001120| 26 20 77 68 69 63 68 50 | 65 72 63 65 6e 74 20 26 |& whichP|ercent &|
|00001130| 20 22 25 20 43 6f 6d 70 | 6c 65 74 65 22 20 26 20 | "% Comp|lete" & |
|00001140| 22 29 22 0d 65 6e 64 20 | 73 68 6f 77 50 72 6f 67 |")".end |showProg|
|00001150| 72 65 73 73 0d 0d 6f 6e | 20 68 69 64 65 50 72 6f |ress..on| hidePro|
|00001160| 67 72 65 73 73 0d 70 75 | 74 20 65 6d 70 74 79 0d |gress.pu|t empty.|
|00001170| 68 69 64 65 20 6d 73 67 | 0d 65 6e 64 20 68 69 64 |hide msg|.end hid|
|00001180| 65 50 72 6f 67 72 65 73 | 73 0d 0d 6f 6e 20 74 6f |eProgres|s..on to|
|00001190| 67 67 6c 65 4c 6f 63 6b | 53 63 72 65 65 6e 0d 75 |ggleLock|Screen.u|
|000011a0| 6e 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 6c 6f 63 |nlock sc|reen.loc|
|000011b0| 6b 20 73 63 72 65 65 6e | 0d 75 6e 6c 6f 63 6b 20 |k screen|.unlock |
|000011c0| 73 63 72 65 65 6e 0d 65 | 6e 64 20 74 6f 67 67 6c |screen.e|nd toggl|
|000011d0| 65 4c 6f 63 6b 53 63 72 | 65 65 6e 0d 0d 6f 6e 20 |eLockScr|een..on |
|000011e0| 73 68 6f 77 4c 69 73 74 | 4e 61 6d 65 0d 67 6c 6f |showList|Name.glo|
|000011f0| 62 61 6c 20 61 63 74 69 | 76 65 4c 69 73 74 4e 61 |bal acti|veListNa|
|00001200| 6d 65 0d 69 66 20 74 68 | 65 20 73 68 6f 72 74 20 |me.if th|e short |
|00001210| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 62 67 20 |name of |this bg |
|00001220| 69 73 20 6e 6f 74 20 22 | 74 68 65 20 63 6f 6c 6c |is not "|the coll|
|00001230| 65 63 74 69 6f 6e 22 20 | 74 68 65 6e 0d 67 6f 20 |ection" |then.go |
|00001240| 62 67 20 22 74 68 65 20 | 63 6f 6c 6c 65 63 74 69 |bg "the |collecti|
|00001250| 6f 6e 22 0d 65 6e 64 20 | 69 66 0d 73 65 74 20 74 |on".end |if.set t|
|00001260| 68 65 20 6e 61 6d 65 20 | 6f 66 20 62 67 20 62 74 |he name |of bg bt|
|00001270| 6e 20 69 64 20 33 35 33 | 20 74 6f 20 22 4c 69 73 |n id 353| to "Lis|
|00001280| 74 20 4e 61 6d 65 3a 22 | 20 26 26 20 61 63 74 69 |t Name:"| && acti|
|00001290| 76 65 4c 69 73 74 4e 61 | 6d 65 0d 65 6e 64 20 73 |veListNa|me.end s|
|000012a0| 68 6f 77 4c 69 73 74 4e | 61 6d 65 0d 0d 6f 6e 20 |howListN|ame..on |
|000012b0| 67 6f 4c 69 73 74 53 74 | 61 63 6b 20 74 68 69 73 |goListSt|ack this|
|000012c0| 43 61 72 64 0d 2d 2d 54 | 61 6b 65 73 20 79 6f 75 |Card.--T|akes you|
|000012d0| 20 74 6f 20 74 68 65 20 | 6c 69 73 74 20 73 74 61 | to the |list sta|
|000012e0| 63 6b 2c 20 6f 72 20 72 | 65 74 75 72 6e 73 20 22 |ck, or r|eturns "|
|000012f0| 6e 6f 22 20 69 66 20 74 | 68 69 73 20 69 73 20 75 |no" if t|his is u|
|00001300| 6e 73 75 63 63 65 73 66 | 75 6c 2e 0d 2d 2d 74 68 |nsuccesf|ul..--th|
|00001310| 69 73 43 61 72 64 2c 20 | 74 68 65 20 6e 61 6d 65 |isCard, |the name|
|00001320| 20 6f 66 20 74 68 65 20 | 63 61 72 64 20 69 6e 20 | of the |card in |
|00001330| 74 68 65 20 6c 69 73 74 | 20 73 74 61 63 6b 0d 2d |the list| stack.-|
|00001340| 2d 79 6f 75 20 77 61 6e | 74 20 74 6f 20 67 6f 20 |-you wan|t to go |
|00001350| 74 6f 2e 20 69 73 20 6f | 70 74 69 6f 6e 61 6c 2e |to. is o|ptional.|
|00001360| 0d 67 6c 6f 62 61 6c 20 | 6c 69 73 74 53 74 61 63 |.global |listStac|
|00001370| 6b 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 73 65 |k.lock s|creen.se|
|00001380| 74 20 6c 6f 63 6b 4d 65 | 73 73 61 67 65 73 20 74 |t lockMe|ssages t|
|00001390| 6f 20 74 72 75 65 0d 73 | 65 74 20 6c 6f 63 6b 52 |o true.s|et lockR|
|000013a0| 65 63 65 6e 74 20 74 6f | 20 74 72 75 65 0d 67 6f |ecent to| true.go|
|000013b0| 20 73 74 61 63 6b 20 6c | 69 73 74 53 74 61 63 6b | stack l|istStack|
|000013c0| 0d 69 66 20 74 68 65 20 | 73 68 6f 72 74 20 6e 61 |.if the |short na|
|000013d0| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|000013e0| 20 3c 3e 20 6c 69 73 74 | 53 74 61 63 6b 20 74 68 | <> list|Stack th|
|000013f0| 65 6e 20 65 78 69 74 20 | 74 6f 20 68 79 70 65 72 |en exit |to hyper|
|00001400| 63 61 72 64 0d 69 66 20 | 63 61 6e 74 4d 6f 64 69 |card.if |cantModi|
|00001410| 66 79 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |fy of th|is stack|
|00001420| 20 74 68 65 6e 0d 64 69 | 61 6c 6f 67 49 74 20 22 | then.di|alogIt "|
|00001430| 54 68 65 20 73 74 61 63 | 6b 22 20 26 26 20 71 75 |The stac|k" && qu|
|00001440| 6f 74 65 20 26 20 6c 69 | 73 74 53 74 61 63 6b 20 |ote & li|stStack |
|00001450| 26 20 71 75 6f 74 65 20 | 26 26 20 22 69 73 20 6c |& quote |&& "is l|
|00001460| 6f 63 6b 65 64 2e 22 20 | c2 0d 26 26 20 22 59 6f |ocked." |..&& "Yo|
|00001470| 75 20 63 61 6e 27 74 20 | 73 61 76 65 20 63 68 61 |u can't |save cha|
|00001480| 6e 67 65 73 20 74 6f 20 | 79 6f 75 72 20 6c 69 73 |nges to |your lis|
|00001490| 74 73 20 75 6e 74 69 6c | 20 79 6f 75 20 75 6e 6c |ts until| you unl|
|000014a0| 6f 63 6b 22 20 26 26 20 | c2 0d 22 74 68 65 20 73 |ock" && |.."the s|
|000014b0| 74 61 63 6b 22 20 26 26 | 20 71 75 6f 74 65 20 26 |tack" &&| quote &|
|000014c0| 20 6c 69 73 74 53 74 61 | 63 6b 20 26 20 71 75 6f | listSta|ck & quo|
|000014d0| 74 65 20 26 20 22 2e 22 | 0d 72 65 74 75 72 6e 20 |te & "."|.return |
|000014e0| 22 6e 6f 22 0d 65 6e 64 | 20 69 66 0d 69 66 20 74 |"no".end| if.if t|
|000014f0| 68 69 73 43 61 72 64 20 | 69 73 20 6e 6f 74 20 65 |hisCard |is not e|
|00001500| 6d 70 74 79 20 74 68 65 | 6e 20 67 6f 20 63 64 20 |mpty the|n go cd |
|00001510| 74 68 69 73 43 61 72 64 | 0d 69 66 20 74 68 65 20 |thisCard|.if the |
|00001520| 72 65 73 75 6c 74 20 69 | 73 20 6e 6f 74 20 65 6d |result i|s not em|
|00001530| 70 74 79 20 74 68 65 6e | 0d 2d 2d 74 68 69 73 20 |pty then|.--this |
|00001540| 63 61 72 64 20 77 61 73 | 6e 27 74 20 66 6f 75 6e |card was|n't foun|
|00001550| 64 0d 64 69 61 6c 6f 67 | 49 74 20 22 54 68 65 20 |d.dialog|It "The |
|00001560| 63 61 72 64 22 20 26 26 | 20 74 68 69 73 43 61 72 |card" &&| thisCar|
|00001570| 64 20 26 26 20 22 77 61 | 73 20 6e 6f 74 20 66 6f |d && "wa|s not fo|
|00001580| 75 6e 64 20 69 6e 22 20 | 26 26 20 c2 0d 22 74 68 |und in" |&& .."th|
|00001590| 65 20 73 74 61 63 6b 22 | 20 26 26 20 6c 69 73 74 |e stack"| && list|
|000015a0| 53 74 61 63 6b 20 26 26 | 20 22 2e 22 0d 72 65 74 |Stack &&| ".".ret|
|000015b0| 75 72 6e 20 22 6e 6f 22 | 0d 65 6e 64 20 69 66 0d |urn "no"|.end if.|
|000015c0| 65 6e 64 20 67 6f 4c 69 | 73 74 53 74 61 63 6b 0d |end goLi|stStack.|
|000015d0| 0d 2d 2d 4c 49 53 54 20 | 73 63 72 69 70 74 73 0d |.--LIST |scripts.|
|000015e0| 0d 6f 6e 20 64 65 6c 65 | 74 65 4c 69 73 74 45 6e |.on dele|teListEn|
|000015f0| 74 72 69 65 73 20 77 68 | 69 63 68 46 69 65 6c 64 |tries wh|ichField|
|00001600| 0d 73 65 74 20 63 75 72 | 73 6f 72 20 74 6f 20 61 |.set cur|sor to a|
|00001610| 72 72 6f 77 0d 6c 6f 63 | 6b 20 73 63 72 65 65 6e |rrow.loc|k screen|
|00001620| 0d 73 65 6e 64 20 22 64 | 65 6c 65 74 65 45 6e 74 |.send "d|eleteEnt|
|00001630| 72 79 56 69 73 69 62 6c | 65 20 74 72 75 65 22 20 |ryVisibl|e true" |
|00001640| 74 6f 20 74 68 69 73 20 | 63 64 0d 70 75 74 20 74 |to this |cd.put t|
|00001650| 68 65 20 72 65 63 74 20 | 6f 66 20 74 68 65 20 6e |he rect |of the n|
|00001660| 61 6d 65 20 6f 66 20 77 | 68 69 63 68 46 69 65 6c |ame of w|hichFiel|
|00001670| 64 20 69 6e 74 6f 20 6c | 69 73 74 52 65 63 74 0d |d into l|istRect.|
|00001680| 70 75 74 20 6c 69 73 74 | 52 65 63 74 20 69 6e 74 |put list|Rect int|
|00001690| 6f 20 76 61 6c 69 64 41 | 72 65 61 0d 73 75 62 74 |o validA|rea.subt|
|000016a0| 72 61 63 74 20 31 37 20 | 66 72 6f 6d 20 69 74 65 |ract 17 |from ite|
|000016b0| 6d 20 33 20 6f 66 20 76 | 61 6c 69 64 41 72 65 61 |m 3 of v|alidArea|
|000016c0| 0d 2d 2d 31 37 20 69 73 | 20 74 68 65 20 77 69 64 |.--17 is| the wid|
|000016d0| 74 68 20 6f 66 20 74 68 | 65 20 73 63 72 6f 6c 6c |th of th|e scroll|
|000016e0| 20 62 61 72 0d 75 6e 6c | 6f 63 6b 20 73 63 72 65 | bar.unl|ock scre|
|000016f0| 65 6e 20 77 69 74 68 20 | 62 61 72 6e 20 64 6f 6f |en with |barn doo|
|00001700| 72 20 6f 70 65 6e 0d 72 | 65 70 65 61 74 0d 77 61 |r open.r|epeat.wa|
|00001710| 69 74 20 77 68 69 6c 65 | 20 74 68 65 20 6d 6f 75 |it while| the mou|
|00001720| 73 65 20 69 73 20 75 70 | 0d 2d 2d 74 68 65 20 75 |se is up|.--the u|
|00001730| 73 65 72 20 63 6c 69 63 | 6b 65 64 20 74 68 65 20 |ser clic|ked the |
|00001740| 6d 6f 75 73 65 0d 70 75 | 74 20 74 68 65 20 63 6c |mouse.pu|t the cl|
|00001750| 69 63 6b 4c 6f 63 20 69 | 6e 74 6f 20 75 73 65 72 |ickLoc i|nto user|
|00001760| 4c 6f 63 0d 69 66 20 75 | 73 65 72 4c 6f 63 20 69 |Loc.if u|serLoc i|
|00001770| 73 20 77 69 74 68 69 6e | 20 74 68 65 20 72 65 63 |s within| the rec|
|00001780| 74 20 6f 66 20 28 74 68 | 65 20 6e 61 6d 65 20 6f |t of (th|e name o|
|00001790| 66 20 77 68 69 63 68 46 | 69 65 6c 64 29 20 41 4e |f whichF|ield) AN|
|000017a0| 44 20 c2 0d 75 73 65 72 | 4c 6f 63 20 69 73 20 6e |D ..user|Loc is n|
|000017b0| 6f 74 20 77 69 74 68 69 | 6e 20 76 61 6c 69 64 41 |ot withi|n validA|
|000017c0| 72 65 61 20 74 68 65 6e | 0d 2d 2d 75 73 65 72 20 |rea then|.--user |
|000017d0| 63 6c 69 63 6b 65 64 20 | 6f 6e 20 74 68 65 20 73 |clicked |on the s|
|000017e0| 63 72 6f 6c 6c 20 62 61 | 72 0d 6e 65 78 74 20 72 |croll ba|r.next r|
|000017f0| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 69 66 20 |epeat.en|d if.if |
|00001800| 75 73 65 72 4c 6f 63 20 | 69 73 20 4e 4f 54 20 77 |userLoc |is NOT w|
|00001810| 69 74 68 69 6e 20 76 61 | 6c 69 64 41 72 65 61 20 |ithin va|lidArea |
|00001820| 4f 52 20 c2 0d 28 74 68 | 65 20 6e 61 6d 65 20 6f |OR ..(th|e name o|
|00001830| 66 20 77 68 69 63 68 46 | 69 65 6c 64 29 20 3d 20 |f whichF|ield) = |
|00001840| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00001850| 72 65 70 65 61 74 0d 70 | 75 74 20 63 6c 69 63 6b |repeat.p|ut click|
|00001860| 4c 69 6e 65 28 74 68 65 | 20 6e 61 6d 65 20 6f 66 |Line(the| name of|
|00001870| 20 77 68 69 63 68 46 69 | 65 6c 64 29 20 69 6e 74 | whichFi|eld) int|
|00001880| 6f 20 77 68 61 74 4c 69 | 6e 65 0d 69 66 20 6c 69 |o whatLi|ne.if li|
|00001890| 6e 65 20 77 68 61 74 4c | 69 6e 65 20 6f 66 20 28 |ne whatL|ine of (|
|000018a0| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 77 68 69 |the valu|e of whi|
|000018b0| 63 68 46 69 65 6c 64 29 | 20 3d 20 65 6d 70 74 79 |chField)| = empty|
|000018c0| 20 74 68 65 6e 0d 65 78 | 69 74 20 72 65 70 65 61 | then.ex|it repea|
|000018d0| 74 0d 65 6e 64 20 69 66 | 0d 69 66 20 69 73 45 76 |t.end if|.if isEv|
|000018e0| 65 6e 4e 75 6d 62 65 72 | 28 77 68 61 74 4c 69 6e |enNumber|(whatLin|
|000018f0| 65 29 20 74 68 65 6e 20 | 73 75 62 74 72 61 63 74 |e) then |subtract|
|00001900| 20 31 20 66 72 6f 6d 20 | 77 68 61 74 4c 69 6e 65 | 1 from |whatLine|
|00001910| 0d 72 65 70 65 61 74 20 | 32 20 74 69 6d 65 73 0d |.repeat |2 times.|
|00001920| 73 65 6e 64 20 22 73 65 | 6c 65 63 74 4c 69 6e 65 |send "se|lectLine|
|00001930| 20 77 68 61 74 4c 69 6e | 65 2c 20 74 68 65 20 73 | whatLin|e, the s|
|00001940| 68 6f 72 74 20 6e 61 6d | 65 20 6f 66 20 77 68 69 |hort nam|e of whi|
|00001950| 63 68 46 69 65 6c 64 22 | 20 c2 0d 74 6f 20 74 68 |chField"| ..to th|
|00001960| 69 73 20 63 64 0d 64 6f | 20 22 64 65 6c 65 74 65 |is cd.do| "delete|
|00001970| 20 6c 69 6e 65 20 77 68 | 61 74 4c 69 6e 65 20 6f | line wh|atLine o|
|00001980| 66 22 20 26 26 20 74 68 | 65 20 6e 61 6d 65 20 6f |f" && th|e name o|
|00001990| 66 20 77 68 69 63 68 46 | 69 65 6c 64 0d 65 6e 64 |f whichF|ield.end|
|000019a0| 20 72 65 70 65 61 74 0d | 72 65 4e 75 6d 62 65 72 | repeat.|reNumber|
|000019b0| 53 65 71 75 65 6e 63 65 | 20 77 68 61 74 4c 69 6e |Sequence| whatLin|
|000019c0| 65 2c 77 68 69 63 68 46 | 69 65 6c 64 0d 73 65 74 |e,whichF|ield.set|
|000019d0| 20 63 75 72 73 6f 72 20 | 74 6f 20 61 72 72 6f 77 | cursor |to arrow|
|000019e0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 73 65 6e 64 |.end rep|eat.send|
|000019f0| 20 22 64 65 6c 65 74 65 | 45 6e 74 72 79 56 69 73 | "delete|EntryVis|
|00001a00| 69 62 6c 65 20 66 61 6c | 73 65 22 20 74 6f 20 74 |ible fal|se" to t|
|00001a10| 68 69 73 20 63 64 0d 65 | 6e 64 20 64 65 6c 65 74 |his cd.e|nd delet|
|00001a20| 65 4c 69 73 74 45 6e 74 | 72 69 65 73 0d 0d 6f 6e |eListEnt|ries..on|
|00001a30| 20 72 65 4e 75 6d 62 65 | 72 53 65 71 75 65 6e 63 | reNumbe|rSequenc|
|00001a40| 65 20 4e 2c 77 68 69 63 | 68 46 69 65 6c 64 0d 2d |e N,whic|hField.-|
|00001a50| 2d 4e 20 69 73 20 74 68 | 65 20 6c 69 6e 65 20 6e |-N is th|e line n|
|00001a60| 75 6d 62 65 72 20 6f 66 | 20 74 68 65 20 66 69 72 |umber of| the fir|
|00001a70| 73 74 20 6c 69 6e 65 20 | 74 68 61 74 20 6e 65 65 |st line |that nee|
|00001a80| 64 73 20 61 20 6e 65 77 | 20 65 6e 74 72 79 20 6e |ds a new| entry n|
|00001a90| 75 6d 62 65 72 0d 67 6c | 6f 62 61 6c 20 65 6e 74 |umber.gl|obal ent|
|00001aa0| 72 79 50 72 65 66 69 78 | 2c 20 65 6e 74 72 79 53 |ryPrefix|, entryS|
|00001ab0| 75 66 66 69 78 0d 70 75 | 74 20 74 68 65 20 76 61 |uffix.pu|t the va|
|00001ac0| 6c 75 65 20 6f 66 20 77 | 68 69 63 68 46 69 65 6c |lue of w|hichFiel|
|00001ad0| 64 20 69 6e 74 6f 20 74 | 68 69 73 46 69 65 6c 64 |d into t|hisField|
|00001ae0| 0d 72 65 70 65 61 74 20 | 75 6e 74 69 6c 20 6c 69 |.repeat |until li|
|00001af0| 6e 65 20 4e 20 6f 66 20 | 74 68 69 73 46 69 65 6c |ne N of |thisFiel|
|00001b00| 64 20 3d 20 65 6d 70 74 | 79 0d 73 65 74 20 63 75 |d = empt|y.set cu|
|00001b10| 72 73 6f 72 20 74 6f 20 | 77 61 74 63 68 0d 64 65 |rsor to |watch.de|
|00001b20| 6c 65 74 65 20 63 68 61 | 72 20 31 20 74 6f 20 74 |lete cha|r 1 to t|
|00001b30| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |he numbe|r of cha|
|00001b40| 72 73 20 69 6e 20 65 6e | 74 72 79 50 72 65 66 69 |rs in en|tryPrefi|
|00001b50| 78 20 c2 0d 6f 66 20 6c | 69 6e 65 20 4e 20 6f 66 |x ..of l|ine N of|
|00001b60| 20 74 68 69 73 46 69 65 | 6c 64 0d 70 75 74 20 28 | thisFie|ld.put (|
|00001b70| 4e 20 2f 20 32 20 2b 20 | 2e 35 29 20 69 6e 74 6f |N / 2 + |.5) into|
|00001b80| 20 6e 65 77 4e 75 6d 62 | 65 72 0d 70 75 74 20 62 | newNumb|er.put b|
|00001b90| 65 67 69 6e 45 6e 74 72 | 79 4c 69 6e 65 28 6e 65 |eginEntr|yLine(ne|
|00001ba0| 77 4e 75 6d 62 65 72 29 | 20 69 6e 74 6f 20 62 65 |wNumber)| into be|
|00001bb0| 67 69 6e 4c 69 6e 65 0d | 70 75 74 20 62 65 67 69 |ginLine.|put begi|
|00001bc0| 6e 4c 69 6e 65 20 26 20 | 6e 65 77 4e 75 6d 62 65 |nLine & |newNumbe|
|00001bd0| 72 20 26 20 65 6e 74 72 | 79 53 75 66 66 69 78 20 |r & entr|ySuffix |
|00001be0| c2 0d 62 65 66 6f 72 65 | 20 6c 69 6e 65 20 4e 20 |..before| line N |
|00001bf0| 6f 66 20 74 68 69 73 46 | 69 65 6c 64 0d 64 6f 20 |of thisF|ield.do |
|00001c00| 22 70 75 74 20 74 68 69 | 73 46 69 65 6c 64 20 69 |"put thi|sField i|
|00001c10| 6e 74 6f 22 20 26 26 20 | 74 68 65 20 6e 61 6d 65 |nto" && |the name|
|00001c20| 20 6f 66 20 77 68 69 63 | 68 46 69 65 6c 64 0d 61 | of whic|hField.a|
|00001c30| 64 64 20 32 20 74 6f 20 | 4e 0d 65 6e 64 20 72 65 |dd 2 to |N.end re|
|00001c40| 70 65 61 74 0d 65 6e 64 | 20 72 65 4e 75 6d 62 65 |peat.end| reNumbe|
|00001c50| 72 53 65 71 75 65 6e 63 | 65 0d 0d 6f 6e 20 66 69 |rSequenc|e..on fi|
|00001c60| 6e 64 45 6e 74 72 79 20 | 77 68 69 63 68 4c 69 6e |ndEntry |whichLin|
|00001c70| 65 2c 66 69 6e 64 54 68 | 69 73 2c 77 68 69 63 68 |e,findTh|is,which|
|00001c80| 46 69 65 6c 64 0d 67 6c | 6f 62 61 6c 20 6c 69 73 |Field.gl|obal lis|
|00001c90| 74 53 63 72 6f 6c 6c 2c | 65 6e 74 72 79 50 72 65 |tScroll,|entryPre|
|00001ca0| 66 69 78 0d 69 66 20 66 | 69 6e 64 54 68 69 73 20 |fix.if f|indThis |
|00001cb0| 69 73 20 65 6d 70 74 79 | 20 74 68 65 6e 20 65 78 |is empty| then ex|
|00001cc0| 69 74 20 66 69 6e 64 45 | 6e 74 72 79 0d 69 66 20 |it findE|ntry.if |
|00001cd0| 28 77 68 69 63 68 4c 69 | 6e 65 2f 32 29 20 3d 20 |(whichLi|ne/2) = |
|00001ce0| 74 72 75 6e 63 28 77 68 | 69 63 68 4c 69 6e 65 2f |trunc(wh|ichLine/|
|00001cf0| 32 29 20 74 68 65 6e 0d | 2d 2d 20 75 73 65 72 20 |2) then.|-- user |
|00001d00| 73 65 6c 65 63 74 65 64 | 20 61 20 66 69 6c 65 20 |selected| a file |
|00001d10| 6e 61 6d 65 0d 70 75 74 | 20 6c 69 6e 65 20 77 68 |name.put| line wh|
|00001d20| 69 63 68 4c 69 6e 65 20 | 6f 66 20 74 68 65 20 76 |ichLine |of the v|
|00001d30| 61 6c 75 65 20 6f 66 20 | 77 68 69 63 68 46 69 65 |alue of |whichFie|
|00001d40| 6c 64 20 69 6e 74 6f 20 | 75 6e 69 71 75 65 4e 75 |ld into |uniqueNu|
|00001d50| 6d 62 65 72 0d 65 6c 73 | 65 0d 2d 2d 20 75 73 65 |mber.els|e.-- use|
|00001d60| 72 20 73 65 6c 65 63 74 | 65 64 20 61 20 6e 61 6d |r select|ed a nam|
|00001d70| 65 0d 70 75 74 20 6c 69 | 6e 65 20 28 77 68 69 63 |e.put li|ne (whic|
|00001d80| 68 4c 69 6e 65 2b 31 29 | 20 6f 66 20 74 68 65 20 |hLine+1)| of the |
|00001d90| 76 61 6c 75 65 20 6f 66 | 20 77 68 69 63 68 46 69 |value of| whichFi|
|00001da0| 65 6c 64 20 69 6e 74 6f | 20 75 6e 69 71 75 65 4e |eld into| uniqueN|
|00001db0| 75 6d 62 65 72 0d 65 6e | 64 20 69 66 0d 2d 2d 20 |umber.en|d if.-- |
|00001dc0| 67 65 74 20 72 69 64 20 | 6f 66 20 65 78 74 72 61 |get rid |of extra|
|00001dd0| 20 63 68 61 72 61 63 74 | 65 72 73 0d 64 65 6c 65 | charact|ers.dele|
|00001de0| 74 65 20 63 68 61 72 20 | 31 20 74 6f 20 28 74 68 |te char |1 to (th|
|00001df0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 68 61 72 |e number| of char|
|00001e00| 73 20 69 6e 20 65 6e 74 | 72 79 50 72 65 66 69 78 |s in ent|ryPrefix|
|00001e10| 29 20 c2 0d 6f 66 20 75 | 6e 69 71 75 65 4e 75 6d |) ..of u|niqueNum|
|00001e20| 62 65 72 0d 69 66 20 74 | 68 65 20 73 68 6f 72 74 |ber.if t|he short|
|00001e30| 20 6e 61 6d 65 20 6f 66 | 20 74 68 69 73 20 62 67 | name of| this bg|
|00001e40| 20 69 73 20 6e 6f 74 20 | 22 74 68 65 20 63 6f 6c | is not |"the col|
|00001e50| 6c 65 63 74 69 6f 6e 22 | 20 74 68 65 6e 0d 67 6f |lection"| then.go|
|00001e60| 20 62 67 20 22 74 68 65 | 20 63 6f 6c 6c 65 63 74 | bg "the| collect|
|00001e70| 69 6f 6e 22 0d 65 6e 64 | 20 69 66 0d 66 69 6e 64 |ion".end| if.find|
|00001e80| 20 77 68 6f 6c 65 20 75 | 6e 69 71 75 65 4e 75 6d | whole u|niqueNum|
|00001e90| 62 65 72 20 69 6e 20 66 | 6c 64 20 22 66 69 6c 65 |ber in f|ld "file|
|00001ea0| 20 6e 61 6d 65 20 66 69 | 65 6c 64 22 0d 69 66 20 | name fi|eld".if |
|00001eb0| 74 68 65 20 66 6f 75 6e | 64 54 65 78 74 20 69 73 |the foun|dText is|
|00001ec0| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 64 69 61 6c | empty t|hen.dial|
|00001ed0| 6f 67 49 74 20 22 49 6e | 20 74 68 69 73 20 73 74 |ogIt "In| this st|
|00001ee0| 61 63 6b 2c 20 74 68 65 | 72 65 20 69 73 6e d5 74 |ack, the|re isn.t|
|00001ef0| 20 61 20 67 72 61 70 68 | 69 63 20 77 69 74 68 20 | a graph|ic with |
|00001f00| 74 68 65 20 66 69 6c 65 | 20 6e 61 6d 65 22 20 c2 |the file| name" .|
|00001f10| 0d 26 26 20 71 75 6f 74 | 65 20 26 20 75 6e 69 71 |.&& quot|e & uniq|
|00001f20| 75 65 4e 75 6d 62 65 72 | 20 26 20 71 75 6f 74 65 |ueNumber| & quote|
|00001f30| 20 26 20 22 2e 22 0d 65 | 78 69 74 20 66 69 6e 64 | & ".".e|xit find|
|00001f40| 45 6e 74 72 79 0d 65 6e | 64 20 69 66 0d 73 65 74 |Entry.en|d if.set|
|00001f50| 20 73 63 72 6f 6c 6c 20 | 6f 66 20 66 6c 64 20 22 | scroll |of fld "|
|00001f60| 6c 69 73 74 22 20 74 6f | 20 6c 69 73 74 53 63 72 |list" to| listScr|
|00001f70| 6f 6c 6c 0d 75 6e 6c 6f | 63 6b 20 73 63 72 65 65 |oll.unlo|ck scree|
|00001f80| 6e 20 77 69 74 68 20 76 | 69 73 75 61 6c 20 65 66 |n with v|isual ef|
|00001f90| 66 65 63 74 20 77 69 70 | 65 20 6c 65 66 74 0d 65 |fect wip|e left.e|
|00001fa0| 6e 64 20 66 69 6e 64 45 | 6e 74 72 79 0d 0d 6f 6e |nd findE|ntry..on|
|00001fb0| 20 73 61 76 65 43 68 61 | 6e 67 65 73 20 64 69 61 | saveCha|nges dia|
|00001fc0| 6c 6f 67 4e 65 65 64 65 | 64 2c 74 6f 42 65 53 61 |logNeede|d,toBeSa|
|00001fd0| 76 65 64 2c 73 61 76 69 | 6e 67 4f 70 65 6e 4c 69 |ved,savi|ngOpenLi|
|00001fe0| 73 74 0d 67 6c 6f 62 61 | 6c 20 61 63 74 69 76 65 |st.globa|l active|
|00001ff0| 4c 69 73 74 4e 61 6d 65 | 2c 63 68 61 6e 67 65 73 |ListName|,changes|
|00002000| 54 6f 4c 69 73 74 2c 74 | 61 67 67 65 64 4c 69 73 |ToList,t|aggedLis|
|00002010| 74 0d 2d 2d 64 69 61 6c | 6f 67 4e 65 65 64 65 64 |t.--dial|ogNeeded|
|00002020| 20 3d 20 74 72 75 65 20 | 69 66 20 61 20 64 69 61 | = true |if a dia|
|00002030| 6c 6f 67 20 69 73 20 6e | 65 65 64 65 64 20 61 73 |log is n|eeded as|
|00002040| 6b 69 6e 67 20 74 68 65 | 20 75 73 65 72 0d 2d 2d |king the| user.--|
|00002050| 69 66 20 74 68 65 79 20 | 77 61 6e 74 20 74 6f 20 |if they |want to |
|00002060| 73 61 76 65 20 63 68 61 | 6e 67 65 73 2e 0d 2d 2d |save cha|nges..--|
|00002070| 73 61 76 69 6e 67 4f 70 | 65 6e 4c 69 73 74 20 3d |savingOp|enList =|
|00002080| 20 66 61 6c 73 65 20 69 | 66 20 79 6f 75 20 61 72 | false i|f you ar|
|00002090| 65 20 73 61 76 69 6e 67 | 20 61 20 6c 69 73 74 20 |e saving| a list |
|000020a0| 74 68 61 74 20 69 73 20 | 6e 6f 74 0d 2d 2d 74 68 |that is |not.--th|
|000020b0| 65 20 61 63 74 69 76 65 | 20 6c 69 73 74 20 28 61 |e active| list (a|
|000020c0| 73 20 79 6f 75 20 63 61 | 6e 20 64 6f 20 6f 6e 20 |s you ca|n do on |
|000020d0| 74 68 65 20 46 6f 63 75 | 73 20 63 61 72 64 29 2e |the Focu|s card).|
|000020e0| 0d 2d 2d 20 52 65 74 75 | 72 6e 20 74 72 75 65 20 |.-- Retu|rn true |
|000020f0| 69 66 20 74 68 65 20 73 | 61 76 65 20 77 61 73 20 |if the s|ave was |
|00002100| 63 6f 6d 70 6c 65 74 65 | 64 20 61 6e 64 20 73 75 |complete|d and su|
|00002110| 63 63 65 73 66 75 6c 6c | 79 2e 0d 2d 2d 20 4f 74 |ccesfull|y..-- Ot|
|00002120| 68 65 72 77 69 73 65 2c | 20 69 74 20 72 65 74 75 |herwise,| it retu|
|00002130| 72 6e 20 66 61 6c 73 65 | 2e 0d 70 75 74 20 74 68 |rn false|..put th|
|00002140| 65 20 6c 6f 6e 67 20 6e | 61 6d 65 20 6f 66 20 74 |e long n|ame of t|
|00002150| 68 69 73 20 63 64 20 69 | 6e 74 6f 20 61 66 74 65 |his cd i|nto afte|
|00002160| 72 53 61 76 65 47 6f 48 | 65 72 65 0d 69 66 20 73 |rSaveGoH|ere.if s|
|00002170| 61 76 69 6e 67 4f 70 65 | 6e 4c 69 73 74 20 74 68 |avingOpe|nList th|
|00002180| 65 6e 0d 69 66 20 63 68 | 61 6e 67 65 73 54 6f 4c |en.if ch|angesToL|
|00002190| 69 73 74 20 69 73 20 6e | 6f 74 20 74 72 75 65 20 |ist is n|ot true |
|000021a0| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 66 61 6c 73 |then ret|urn fals|
|000021b0| 65 0d 2d 2d 74 68 65 20 | 65 78 69 74 20 77 61 73 |e.--the |exit was|
|000021c0| 20 6d 61 64 65 20 62 65 | 63 61 75 73 65 20 61 20 | made be|cause a |
|000021d0| 73 61 76 65 20 77 61 73 | 20 75 6e 6e 65 63 65 73 |save was| unneces|
|000021e0| 73 61 72 79 2e 0d 69 66 | 20 64 69 61 6c 6f 67 4e |sary..if| dialogN|
|000021f0| 65 65 64 65 64 20 74 68 | 65 6e 0d 2d 2d 20 54 68 |eeded th|en.-- Th|
|00002200| 65 20 75 73 65 72 20 6e | 65 65 64 73 20 74 6f 20 |e user n|eeds to |
|00002210| 62 65 20 61 73 6b 65 64 | 20 69 66 20 74 68 65 79 |be asked| if they|
|00002220| 20 77 61 6e 74 20 74 6f | 20 73 61 76 65 20 63 68 | want to| save ch|
|00002230| 61 6e 67 65 73 2e 0d 64 | 69 61 6c 6f 67 49 74 20 |anges..d|ialogIt |
|00002240| 22 53 61 76 65 20 63 68 | 61 6e 67 65 73 20 74 6f |"Save ch|anges to|
|00002250| 20 74 68 65 20 6c 69 73 | 74 20 22 20 c2 0d 26 20 | the lis|t " ..& |
|00002260| 71 75 6f 74 65 20 26 20 | 61 63 74 69 76 65 4c 69 |quote & |activeLi|
|00002270| 73 74 4e 61 6d 65 20 26 | 20 71 75 6f 74 65 20 26 |stName &| quote &|
|00002280| 20 22 3f 22 2c 20 22 4e | 6f 2c 59 65 73 22 0d 69 | "?", "N|o,Yes".i|
|00002290| 66 20 74 68 65 20 72 65 | 73 75 6c 74 20 69 73 20 |f the re|sult is |
|000022a0| 22 4e 6f 22 20 74 68 65 | 6e 0d 2d 2d 20 54 68 65 |"No" the|n.-- The|
|000022b0| 20 75 73 65 72 20 64 6f | 65 73 6e 27 74 20 77 61 | user do|esn't wa|
|000022c0| 6e 74 20 74 6f 20 73 61 | 76 65 20 74 68 65 20 63 |nt to sa|ve the c|
|000022d0| 75 72 72 65 6e 74 20 6c | 69 73 74 2e 0d 70 75 74 |urrent l|ist..put|
|000022e0| 20 22 55 6e 74 69 74 6c | 65 64 22 20 69 6e 74 6f | "Untitl|ed" into|
|000022f0| 20 61 63 74 69 76 65 4c | 69 73 74 4e 61 6d 65 0d | activeL|istName.|
|00002300| 70 75 74 20 66 61 6c 73 | 65 20 69 6e 74 6f 20 63 |put fals|e into c|
|00002310| 68 61 6e 67 65 73 54 6f | 4c 69 73 74 0d 70 75 74 |hangesTo|List.put|
|00002320| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 74 61 67 67 | empty i|nto tagg|
|00002330| 65 64 4c 69 73 74 0d 65 | 78 69 74 20 73 61 76 65 |edList.e|xit save|
|00002340| 43 68 61 6e 67 65 73 0d | 65 6e 64 20 69 66 0d 65 |Changes.|end if.e|
|00002350| 6e 64 20 69 66 0d 65 6e | 64 20 69 66 0d 69 66 20 |nd if.en|d if.if |
|00002360| 61 63 74 69 76 65 4c 69 | 73 74 4e 61 6d 65 20 69 |activeLi|stName i|
|00002370| 73 20 22 75 6e 74 69 74 | 6c 65 64 22 20 4f 52 20 |s "untit|led" OR |
|00002380| 61 63 74 69 76 65 4c 69 | 73 74 4e 61 6d 65 20 69 |activeLi|stName i|
|00002390| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 0d 2d 2d 47 |s empty |then.--G|
|000023a0| 65 74 20 61 20 6e 61 6d | 65 20 66 6f 72 20 74 68 |et a nam|e for th|
|000023b0| 65 20 6c 69 73 74 0d 63 | 68 65 63 6b 4c 69 73 74 |e list.c|heckList|
|000023c0| 4e 61 6d 65 20 22 53 61 | 76 65 20 74 68 65 20 6c |Name "Sa|ve the l|
|000023d0| 69 73 74 20 61 73 20 28 | 31 35 20 6c 65 74 74 65 |ist as (|15 lette|
|000023e0| 72 73 20 6f 72 20 6c 65 | 73 73 29 3a 22 0d 69 66 |rs or le|ss):".if|
|000023f0| 20 74 68 65 20 72 65 73 | 75 6c 74 20 69 73 20 6e | the res|ult is n|
|00002400| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 20 72 65 |ot empty| then re|
|00002410| 74 75 72 6e 20 66 61 6c | 73 65 0d 2d 2d 79 6f 75 |turn fal|se.--you|
|00002420| 20 61 72 65 20 61 74 20 | 74 68 65 20 6e 65 77 20 | are at |the new |
|00002430| 6c 69 73 74 20 63 61 72 | 64 2e 0d 65 6e 64 20 69 |list car|d..end i|
|00002440| 66 0d 67 6f 4c 69 73 74 | 53 74 61 63 6b 20 61 63 |f.goList|Stack ac|
|00002450| 74 69 76 65 4c 69 73 74 | 4e 61 6d 65 0d 69 66 20 |tiveList|Name.if |
|00002460| 74 68 65 20 72 65 73 75 | 6c 74 20 69 73 20 22 6e |the resu|lt is "n|
|00002470| 6f 22 20 74 68 65 6e 0d | 67 6f 20 61 66 74 65 72 |o" then.|go after|
|00002480| 53 61 76 65 47 6f 48 65 | 72 65 0d 72 65 74 75 72 |SaveGoHe|re.retur|
|00002490| 6e 20 66 61 6c 73 65 0d | 65 6e 64 20 69 66 0d 73 |n false.|end if.s|
|000024a0| 65 74 20 63 75 72 73 6f | 72 20 74 6f 20 62 75 73 |et curso|r to bus|
|000024b0| 79 0d 70 75 74 20 74 6f | 42 65 53 61 76 65 64 20 |y.put to|BeSaved |
|000024c0| 69 6e 74 6f 20 66 6c 64 | 20 22 74 61 67 67 65 64 |into fld| "tagged|
|000024d0| 20 6c 69 73 74 22 0d 67 | 6f 20 61 66 74 65 72 53 | list".g|o afterS|
|000024e0| 61 76 65 47 6f 48 65 72 | 65 0d 73 65 74 20 63 75 |aveGoHer|e.set cu|
|000024f0| 72 73 6f 72 20 74 6f 20 | 62 75 73 79 0d 69 66 20 |rsor to |busy.if |
|00002500| 73 61 76 69 6e 67 4f 70 | 65 6e 4c 69 73 74 20 74 |savingOp|enList t|
|00002510| 68 65 6e 0d 70 75 74 20 | 66 61 6c 73 65 20 69 6e |hen.put |false in|
|00002520| 74 6f 20 63 68 61 6e 67 | 65 73 54 6f 4c 69 73 74 |to chang|esToList|
|00002530| 0d 73 68 6f 77 4c 69 73 | 74 4e 61 6d 65 0d 65 6e |.showLis|tName.en|
|00002540| 64 20 69 66 0d 72 65 74 | 75 72 6e 20 74 72 75 65 |d if.ret|urn true|
|00002550| 0d 65 6e 64 20 73 61 76 | 65 43 68 61 6e 67 65 73 |.end sav|eChanges|
|00002560| 0d 0d 6f 6e 20 63 68 65 | 63 6b 4c 69 73 74 4e 61 |..on che|ckListNa|
|00002570| 6d 65 20 70 72 6f 6d 70 | 74 2c 64 65 66 61 75 6c |me promp|t,defaul|
|00002580| 74 0d 2d 2d 20 49 66 20 | 6c 69 73 74 20 65 6e 74 |t.-- If |list ent|
|00002590| 65 72 65 64 20 69 73 20 | 69 6e 76 61 6c 69 64 2c |ered is |invalid,|
|000025a0| 20 72 65 74 75 72 6e 20 | 61 20 6e 6f 6e 2d 65 6d | return |a non-em|
|000025b0| 70 74 79 20 76 61 6c 75 | 65 2e 0d 67 6c 6f 62 61 |pty valu|e..globa|
|000025c0| 6c 20 61 63 74 69 76 65 | 4c 69 73 74 4e 61 6d 65 |l active|ListName|
|000025d0| 0d 69 66 20 64 65 66 61 | 75 6c 74 20 3d 20 22 75 |.if defa|ult = "u|
|000025e0| 6e 74 69 74 6c 65 64 22 | 20 74 68 65 6e 20 70 75 |ntitled"| then pu|
|000025f0| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 64 65 66 |t empty |into def|
|00002600| 61 75 6c 74 0d 61 73 6b | 20 70 72 6f 6d 70 74 20 |ault.ask| prompt |
|00002610| 77 69 74 68 20 64 65 66 | 61 75 6c 74 0d 70 75 74 |with def|ault.put|
|00002620| 20 69 74 20 69 6e 74 6f | 20 77 68 69 63 68 4e 61 | it into| whichNa|
|00002630| 6d 65 0d 69 66 20 77 68 | 69 63 68 4e 61 6d 65 20 |me.if wh|ichName |
|00002640| 3d 20 65 6d 70 74 79 20 | 74 68 65 6e 20 72 65 74 |= empty |then ret|
|00002650| 75 72 6e 20 22 31 22 0d | 65 6c 73 65 20 69 66 20 |urn "1".|else if |
|00002660| 6e 6f 74 20 76 61 6c 69 | 64 4c 69 73 74 4e 61 6d |not vali|dListNam|
|00002670| 65 28 77 68 69 63 68 4e | 61 6d 65 29 20 74 68 65 |e(whichN|ame) the|
|00002680| 6e 0d 63 68 65 63 6b 4c | 69 73 74 4e 61 6d 65 20 |n.checkL|istName |
|00002690| 70 72 6f 6d 70 74 2c 64 | 65 66 61 75 6c 74 0d 65 |prompt,d|efault.e|
|000026a0| 78 69 74 20 63 68 65 63 | 6b 4c 69 73 74 4e 61 6d |xit chec|kListNam|
|000026b0| 65 0d 65 6e 64 20 69 66 | 0d 2d 2d 20 59 6f 75 27 |e.end if|.-- You'|
|000026c0| 72 65 20 69 6e 20 74 68 | 65 20 6c 69 73 74 20 73 |re in th|e list s|
|000026d0| 74 61 63 6b 2e 0d 70 75 | 74 20 77 68 69 63 68 4e |tack..pu|t whichN|
|000026e0| 61 6d 65 20 69 6e 74 6f | 20 61 63 74 69 76 65 4c |ame into| activeL|
|000026f0| 69 73 74 4e 61 6d 65 0d | 67 6f 20 6c 61 73 74 20 |istName.|go last |
|00002700| 63 64 20 6f 66 20 74 68 | 69 73 20 62 67 0d 64 6f |cd of th|is bg.do|
|00002710| 4d 65 6e 75 20 22 6e 65 | 77 20 63 61 72 64 22 0d |Menu "ne|w card".|
|00002720| 73 65 74 20 74 68 65 20 | 6e 61 6d 65 20 6f 66 20 |set the |name of |
|00002730| 74 68 69 73 20 63 64 20 | 74 6f 20 61 63 74 69 76 |this cd |to activ|
|00002740| 65 4c 69 73 74 4e 61 6d | 65 0d 65 6e 64 20 63 68 |eListNam|e.end ch|
|00002750| 65 63 6b 4c 69 73 74 4e | 61 6d 65 0d 0d 6f 6e 20 |eckListN|ame..on |
|00002760| 64 69 61 6c 6f 67 49 74 | 20 77 68 69 63 68 54 65 |dialogIt| whichTe|
|00002770| 78 74 2c 20 77 68 69 63 | 68 42 75 74 74 6f 6e 73 |xt, whic|hButtons|
|00002780| 2c 20 77 68 69 63 68 46 | 6f 6e 74 2c 20 77 68 69 |, whichF|ont, whi|
|00002790| 63 68 49 63 6f 6e 0d 69 | 66 20 77 68 69 63 68 42 |chIcon.i|f whichB|
|000027a0| 75 74 74 6f 6e 73 20 69 | 73 20 65 6d 70 74 79 20 |uttons i|s empty |
|000027b0| 74 68 65 6e 20 70 75 74 | 20 22 4f 4b 22 20 69 6e |then put| "OK" in|
|000027c0| 74 6f 20 77 68 69 63 68 | 42 75 74 74 6f 6e 73 0d |to which|Buttons.|
|000027d0| 69 66 20 77 68 69 63 68 | 49 63 6f 6e 20 69 73 20 |if which|Icon is |
|000027e0| 65 6d 70 74 79 20 74 68 | 65 6e 20 70 75 74 20 22 |empty th|en put "|
|000027f0| 30 22 20 69 6e 74 6f 20 | 77 68 69 63 68 49 63 6f |0" into |whichIco|
|00002800| 6e 0d 69 66 20 77 68 69 | 63 68 46 6f 6e 74 20 69 |n.if whi|chFont i|
|00002810| 73 20 65 6d 70 74 79 20 | 74 68 65 6e 20 70 75 74 |s empty |then put|
|00002820| 20 22 63 68 69 63 61 67 | 6f 22 20 69 6e 74 6f 20 | "chicag|o" into |
|00002830| 77 68 69 63 68 46 6f 6e | 74 0d 67 65 74 20 64 69 |whichFon|t.get di|
|00002840| 61 6c 6f 67 28 77 68 69 | 63 68 54 65 78 74 2c 77 |alog(whi|chText,w|
|00002850| 68 69 63 68 42 75 74 74 | 6f 6e 73 2c 77 68 69 63 |hichButt|ons,whic|
|00002860| 68 49 63 6f 6e 2c 77 68 | 69 63 68 46 6f 6e 74 2c |hIcon,wh|ichFont,|
|00002870| 70 6c 61 69 6e 2c 31 32 | 29 0d 72 65 74 75 72 6e |plain,12|).return|
|00002880| 20 69 74 0d 65 6e 64 20 | 64 69 61 6c 6f 67 49 74 | it.end |dialogIt|
|00002890| 0d 0d 2d 2d a5 20 54 48 | 45 53 45 20 53 43 52 49 |..--. TH|ESE SCRI|
|000028a0| 50 54 53 20 55 53 45 20 | 54 48 45 20 50 4f 49 4e |PTS USE |THE POIN|
|000028b0| 54 45 52 53 20 54 4f 20 | 46 49 4e 44 20 53 50 45 |TERS TO |FIND SPE|
|000028c0| 43 49 46 49 43 20 43 41 | 52 44 53 2e 0d 0d 6f 6e |CIFIC CA|RDS...on|
|000028d0| 20 66 69 6e 64 41 47 53 | 20 64 69 61 6c 6f 67 50 | findAGS| dialogP|
|000028e0| 68 72 61 73 65 2c 69 6e | 64 65 78 46 69 65 6c 64 |hrase,in|dexField|
|000028f0| 2c 70 6f 69 6e 74 65 72 | 46 69 65 6c 64 2c 77 72 |,pointer|Field,wr|
|00002900| 69 74 65 46 69 65 6c 64 | 2c 67 6f 46 6f 72 77 61 |iteField|,goForwa|
|00002910| 72 64 0d 67 6c 6f 62 61 | 6c 20 66 69 6e 64 50 61 |rd.globa|l findPa|
|00002920| 72 61 6d 73 2c 6c 61 73 | 74 46 69 6e 64 54 65 72 |rams,las|tFindTer|
|00002930| 6d 73 0d 69 66 20 74 68 | 65 20 6e 75 6d 62 65 72 |ms.if th|e number|
|00002940| 20 6f 66 20 6c 69 6e 65 | 73 20 69 6e 20 6c 61 73 | of line|s in las|
|00002950| 74 46 69 6e 64 54 65 72 | 6d 73 20 3e 20 31 20 74 |tFindTer|ms > 1 t|
|00002960| 68 65 6e 0d 70 75 74 20 | 67 65 74 43 61 72 64 49 |hen.put |getCardI|
|00002970| 64 49 6e 74 65 72 73 65 | 63 74 69 6f 6e 28 6c 61 |dInterse|ction(la|
|00002980| 73 74 46 69 6e 64 54 65 | 72 6d 73 2c 70 6f 69 6e |stFindTe|rms,poin|
|00002990| 74 65 72 46 69 65 6c 64 | 2c 77 72 69 74 65 46 69 |terField|,writeFi|
|000029a0| 65 6c 64 29 20 c2 0d 69 | 6e 74 6f 20 76 61 6c 69 |eld) ..i|nto vali|
|000029b0| 64 46 69 6c 65 4e 61 6d | 65 73 0d 65 6c 73 65 0d |dFileNam|es.else.|
|000029c0| 70 75 74 20 67 65 74 56 | 61 6c 69 64 46 69 6c 65 |put getV|alidFile|
|000029d0| 4e 61 6d 65 73 28 6c 61 | 73 74 46 69 6e 64 54 65 |Names(la|stFindTe|
|000029e0| 72 6d 73 2c 70 6f 69 6e | 74 65 72 46 69 65 6c 64 |rms,poin|terField|
|000029f0| 2c 77 72 69 74 65 46 69 | 65 6c 64 29 20 c2 0d 69 |,writeFi|eld) ..i|
|00002a00| 6e 74 6f 20 76 61 6c 69 | 64 46 69 6c 65 4e 61 6d |nto vali|dFileNam|
|00002a10| 65 73 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 62 69 |es.end i|f.put bi|
|00002a20| 6e 61 72 79 49 6e 73 65 | 72 74 28 62 67 20 66 6c |naryInse|rt(bg fl|
|00002a30| 64 20 22 66 69 6c 65 20 | 6e 61 6d 65 20 66 69 65 |d "file |name fie|
|00002a40| 6c 64 22 2c 76 61 6c 69 | 64 46 69 6c 65 4e 61 6d |ld",vali|dFileNam|
|00002a50| 65 73 29 20 c2 0d 69 6e | 74 6f 20 74 68 69 73 49 |es) ..in|to thisI|
|00002a60| 74 65 6d 0d 2d 2d 20 74 | 68 69 73 49 74 65 6d 20 |tem.-- t|hisItem |
|00002a70| 69 73 20 74 68 65 20 69 | 74 65 6d 20 6e 75 6d 62 |is the i|tem numb|
|00002a80| 65 72 20 69 6e 20 76 61 | 6c 69 64 46 69 6c 65 4e |er in va|lidFileN|
|00002a90| 61 6d 65 73 20 6f 66 20 | 74 68 65 20 4e 45 58 54 |ames of |the NEXT|
|00002aa0| 20 76 61 6c 69 64 0d 2d | 2d 20 66 69 6c 65 20 6e | valid.-|- file n|
|00002ab0| 61 6d 65 20 69 6e 20 74 | 68 65 20 73 74 61 63 6b |ame in t|he stack|
|00002ac0| 2e 0d 70 75 74 20 61 6c | 6c 46 6f 75 6e 64 50 72 |..put al|lFoundPr|
|00002ad0| 65 66 69 78 28 6c 61 73 | 74 46 69 6e 64 54 65 72 |efix(las|tFindTer|
|00002ae0| 6d 73 2c 64 69 61 6c 6f | 67 50 68 72 61 73 65 29 |ms,dialo|gPhrase)|
|00002af0| 20 69 6e 74 6f 20 61 6c | 6c 46 6f 75 6e 64 0d 70 | into al|lFound.p|
|00002b00| 75 74 20 6e 6f 6e 65 46 | 6f 75 6e 64 50 72 65 66 |ut noneF|oundPref|
|00002b10| 69 78 28 6c 61 73 74 46 | 69 6e 64 54 65 72 6d 73 |ix(lastF|indTerms|
|00002b20| 2c 64 69 61 6c 6f 67 50 | 68 72 61 73 65 29 20 69 |,dialogP|hrase) i|
|00002b30| 6e 74 6f 20 6e 6f 6e 65 | 46 6f 75 6e 64 0d 69 66 |nto none|Found.if|
|00002b40| 20 74 68 69 73 49 74 65 | 6d 20 3d 20 30 20 74 68 | thisIte|m = 0 th|
|00002b50| 65 6e 0d 64 69 61 6c 6f | 67 49 74 20 6e 6f 6e 65 |en.dialo|gIt none|
|00002b60| 46 6f 75 6e 64 0d 65 78 | 69 74 20 66 69 6e 64 41 |Found.ex|it findA|
|00002b70| 47 53 0d 65 6e 64 20 69 | 66 0d 69 66 20 6e 6f 74 |GS.end i|f.if not|
|00002b80| 20 67 6f 46 6f 72 77 61 | 72 64 20 74 68 65 6e 0d | goForwa|rd then.|
|00002b90| 70 75 74 20 61 64 76 61 | 6e 63 65 49 74 65 6d 28 |put adva|nceItem(|
|00002ba0| 74 68 69 73 49 74 65 6d | 2c 67 6f 46 6f 72 77 61 |thisItem|,goForwa|
|00002bb0| 72 64 2c 76 61 6c 69 64 | 46 69 6c 65 4e 61 6d 65 |rd,valid|FileName|
|00002bc0| 73 29 20 69 6e 74 6f 20 | 74 68 69 73 49 74 65 6d |s) into |thisItem|
|00002bd0| 0d 65 6e 64 20 69 66 0d | 6c 6f 63 6b 20 73 63 72 |.end if.|lock scr|
|00002be0| 65 65 6e 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |een.repe|at with |
|00002bf0| 4e 20 3d 20 28 74 68 65 | 20 6e 75 6d 62 65 72 20 |N = (the| number |
|00002c00| 6f 66 20 69 74 65 6d 73 | 20 69 6e 20 76 61 6c 69 |of items| in vali|
|00002c10| 64 46 69 6c 65 4e 61 6d | 65 73 29 20 64 6f 77 6e |dFileNam|es) down|
|00002c20| 20 74 6f 20 31 0d 69 66 | 20 74 68 65 20 6d 6f 75 | to 1.if| the mou|
|00002c30| 73 65 43 6c 69 63 6b 20 | 74 68 65 6e 20 65 78 69 |seClick |then exi|
|00002c40| 74 20 72 65 70 65 61 74 | 0d 70 75 74 20 67 65 74 |t repeat|.put get|
|00002c50| 43 61 72 64 49 64 28 69 | 74 65 6d 20 74 68 69 73 |CardId(i|tem this|
|00002c60| 49 74 65 6d 20 6f 66 20 | 76 61 6c 69 64 46 69 6c |Item of |validFil|
|00002c70| 65 4e 61 6d 65 73 29 20 | 69 6e 74 6f 20 74 68 69 |eNames) |into thi|
|00002c80| 73 43 61 72 64 49 64 0d | 69 66 20 74 68 69 73 43 |sCardId.|if thisC|
|00002c90| 61 72 64 49 64 20 69 73 | 20 65 6d 70 74 79 20 74 |ardId is| empty t|
|00002ca0| 68 65 6e 20 65 78 69 74 | 20 72 65 70 65 61 74 0d |hen exit| repeat.|
|00002cb0| 67 6f 20 63 64 20 69 64 | 20 74 68 69 73 43 61 72 |go cd id| thisCar|
|00002cc0| 64 49 64 0d 69 66 20 74 | 68 65 20 72 65 73 75 6c |dId.if t|he resul|
|00002cd0| 74 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 74 |t is not| empty t|
|00002ce0| 68 65 6e 20 6e 65 78 74 | 20 72 65 70 65 61 74 0d |hen next| repeat.|
|00002cf0| 69 66 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |if the n|umber of|
|00002d00| 20 6c 69 6e 65 73 20 69 | 6e 20 6c 61 73 74 46 69 | lines i|n lastFi|
|00002d10| 6e 64 54 65 72 6d 73 20 | 3d 20 31 20 74 68 65 6e |ndTerms |= 1 then|
|00002d20| 0d 70 75 74 20 67 65 74 | 4c 69 6e 65 28 6c 61 73 |.put get|Line(las|
|00002d30| 74 46 69 6e 64 54 65 72 | 6d 73 2c 62 67 20 66 6c |tFindTer|ms,bg fl|
|00002d40| 64 20 69 6e 64 65 78 46 | 69 65 6c 64 29 20 69 6e |d indexF|ield) in|
|00002d50| 74 6f 20 74 68 69 73 4c | 69 6e 65 0d 69 66 20 74 |to thisL|ine.if t|
|00002d60| 68 69 73 4c 69 6e 65 20 | 69 73 20 65 6d 70 74 79 |hisLine |is empty|
|00002d70| 20 74 68 65 6e 20 6e 65 | 78 74 20 72 65 70 65 61 | then ne|xt repea|
|00002d80| 74 0d 65 6e 64 20 69 66 | 0d 2d 2d 20 54 68 65 72 |t.end if|.-- Ther|
|00002d90| 65 20 69 73 20 61 6e 20 | 65 78 61 63 74 20 6d 61 |e is an |exact ma|
|00002da0| 74 63 68 2e 0d 75 70 64 | 61 74 65 53 74 61 74 75 |tch..upd|ateStatu|
|00002db0| 73 20 4e 0d 73 74 6f 70 | 42 74 6e 53 74 61 74 75 |s N.stop|BtnStatu|
|00002dc0| 73 20 74 72 75 65 0d 69 | 66 20 67 6f 46 6f 72 77 |s true.i|f goForw|
|00002dd0| 61 72 64 20 74 68 65 6e | 20 75 6e 6c 6f 63 6b 20 |ard then| unlock |
|00002de0| 73 63 72 65 65 6e 20 77 | 69 74 68 20 76 69 73 75 |screen w|ith visu|
|00002df0| 61 6c 20 65 66 66 65 63 | 74 20 77 69 70 65 20 6c |al effec|t wipe l|
|00002e00| 65 66 74 0d 65 6c 73 65 | 20 75 6e 6c 6f 63 6b 20 |eft.else| unlock |
|00002e10| 73 63 72 65 65 6e 20 77 | 69 74 68 20 76 69 73 75 |screen w|ith visu|
|00002e20| 61 6c 20 65 66 66 65 63 | 74 20 77 69 70 65 20 72 |al effec|t wipe r|
|00002e30| 69 67 68 74 0d 69 66 20 | 74 68 65 20 6e 75 6d 62 |ight.if |the numb|
|00002e40| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 6c |er of li|nes in l|
|00002e50| 61 73 74 46 69 6e 64 54 | 65 72 6d 73 20 3d 20 31 |astFindT|erms = 1|
|00002e60| 20 74 68 65 6e 0d 73 65 | 6c 65 63 74 4c 69 6e 65 | then.se|lectLine|
|00002e70| 20 74 68 69 73 4c 69 6e | 65 2c 69 6e 64 65 78 46 | thisLin|e,indexF|
|00002e80| 69 65 6c 64 0d 65 6e 64 | 20 69 66 0d 69 66 20 4e |ield.end| if.if N|
|00002e90| 20 3c 3e 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | <> the |number o|
|00002ea0| 66 20 69 74 65 6d 73 20 | 69 6e 20 76 61 6c 69 64 |f items |in valid|
|00002eb0| 46 69 6c 65 4e 61 6d 65 | 73 20 74 68 65 6e 0d 2d |FileName|s then.-|
|00002ec0| 2d 20 54 68 69 73 20 69 | 73 20 6e 6f 74 20 74 68 |- This i|s not th|
|00002ed0| 65 20 66 69 72 73 74 20 | 74 69 6d 65 20 74 68 72 |e first |time thr|
|00002ee0| 6f 75 67 68 0d 69 66 20 | 73 68 61 6c 6c 57 65 53 |ough.if |shallWeS|
|00002ef0| 74 6f 70 28 29 20 74 68 | 65 6e 20 65 78 69 74 20 |top() th|en exit |
|00002f00| 72 65 70 65 61 74 0d 65 | 6e 64 20 69 66 0d 6c 6f |repeat.e|nd if.lo|
|00002f10| 63 6b 20 73 63 72 65 65 | 6e 0d 70 75 74 20 65 6d |ck scree|n.put em|
|00002f20| 70 74 79 20 69 6e 74 6f | 20 66 6c 64 20 22 53 74 |pty into| fld "St|
|00002f30| 61 74 75 73 22 0d 70 75 | 74 20 61 64 76 61 6e 63 |atus".pu|t advanc|
|00002f40| 65 49 74 65 6d 28 74 68 | 69 73 49 74 65 6d 2c 67 |eItem(th|isItem,g|
|00002f50| 6f 46 6f 72 77 61 72 64 | 2c 76 61 6c 69 64 46 69 |oForward|,validFi|
|00002f60| 6c 65 4e 61 6d 65 73 29 | 20 69 6e 74 6f 20 74 68 |leNames)| into th|
|00002f70| 69 73 49 74 65 6d 0d 69 | 66 20 4e 20 3d 20 31 20 |isItem.i|f N = 1 |
|00002f80| 74 68 65 6e 0d 2d 2d 20 | 59 6f 75 27 76 65 20 67 |then.-- |You've g|
|00002f90| 6f 6e 65 20 74 6f 20 61 | 6c 6c 20 6f 66 20 74 68 |one to a|ll of th|
|00002fa0| 65 20 61 70 70 72 6f 70 | 72 69 61 74 65 20 63 61 |e approp|riate ca|
|00002fb0| 72 64 73 2c 20 73 6f 20 | 73 74 6f 70 2e 0d 77 61 |rds, so |stop..wa|
|00002fc0| 69 74 20 33 30 0d 73 74 | 6f 70 42 74 6e 53 74 61 |it 30.st|opBtnSta|
|00002fd0| 74 75 73 20 66 61 6c 73 | 65 0d 75 6e 6c 6f 63 6b |tus fals|e.unlock|
|00002fe0| 20 73 63 72 65 65 6e 0d | 77 61 69 74 20 34 30 0d | screen.|wait 40.|
|00002ff0| 69 66 20 6e 6f 74 20 74 | 68 65 20 6d 6f 75 73 65 |if not t|he mouse|
|00003000| 43 6c 69 63 6b 20 74 68 | 65 6e 20 64 69 61 6c 6f |Click th|en dialo|
|00003010| 67 49 74 20 61 6c 6c 46 | 6f 75 6e 64 0d 65 6e 64 |gIt allF|ound.end|
|00003020| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 | if.end |repeat.p|
|00003030| 75 74 20 74 68 65 20 70 | 61 72 61 6d 73 20 69 6e |ut the p|arams in|
|00003040| 74 6f 20 66 69 6e 64 50 | 61 72 61 6d 73 0d 73 74 |to findP|arams.st|
|00003050| 6f 70 42 74 6e 53 74 61 | 74 75 73 20 66 61 6c 73 |opBtnSta|tus fals|
|00003060| 65 0d 70 75 74 20 65 6d | 70 74 79 20 69 6e 74 6f |e.put em|pty into|
|00003070| 20 62 67 20 66 6c 64 20 | 22 73 74 61 74 75 73 22 | bg fld |"status"|
|00003080| 0d 65 6e 64 20 66 69 6e | 64 41 47 53 0d 0d 6f 6e |.end fin|dAGS..on|
|00003090| 20 75 70 64 61 74 65 53 | 74 61 74 75 73 20 63 61 | updateS|tatus ca|
|000030a0| 72 64 73 4c 65 66 74 0d | 69 66 20 63 61 72 64 73 |rdsLeft.|if cards|
|000030b0| 4c 65 66 74 20 3d 20 31 | 20 74 68 65 6e 20 70 75 |Left = 1| then pu|
|000030c0| 74 20 22 6f 63 63 75 72 | 72 65 6e 63 65 22 20 69 |t "occur|rence" i|
|000030d0| 6e 74 6f 20 70 68 72 61 | 73 65 0d 65 6c 73 65 20 |nto phra|se.else |
|000030e0| 70 75 74 20 22 6f 63 63 | 75 72 72 65 6e 63 65 73 |put "occ|urrences|
|000030f0| 22 20 69 6e 74 6f 20 70 | 68 72 61 73 65 0d 70 75 |" into p|hrase.pu|
|00003100| 74 20 63 61 72 64 73 4c | 65 66 74 20 26 26 20 70 |t cardsL|eft && p|
|00003110| 68 72 61 73 65 20 26 26 | 20 22 6c 65 66 74 2e 20 |hrase &&| "left. |
|00003120| 43 6c 69 63 6b 20 61 6e | 64 20 48 6f 6c 64 20 74 |Click an|d Hold t|
|00003130| 6f 20 53 74 6f 70 2e 22 | 20 c2 0d 69 6e 74 6f 20 |o Stop."| ..into |
|00003140| 66 6c 64 20 22 73 74 61 | 74 75 73 22 0d 65 6e 64 |fld "sta|tus".end|
|00003150| 20 75 70 64 61 74 65 53 | 74 61 74 75 73 0d 0d 2d | updateS|tatus..-|
|00003160| 2d a5 20 54 48 45 53 45 | 20 53 43 52 49 50 54 53 |-. THESE| SCRIPTS|
|00003170| 20 48 41 4e 44 4c 45 20 | 54 48 45 20 50 4f 49 4e | HANDLE |THE POIN|
|00003180| 54 45 52 53 2e 0d 0d 6f | 6e 20 62 75 69 6c 64 50 |TERS...o|n buildP|
|00003190| 6f 69 6e 74 65 72 73 20 | 69 6e 64 65 78 46 69 65 |ointers |indexFie|
|000031a0| 6c 64 2c 77 72 69 74 65 | 46 69 65 6c 64 2c 70 6f |ld,write|Field,po|
|000031b0| 69 6e 74 65 72 46 69 65 | 6c 64 0d 70 75 74 20 72 |interFie|ld.put r|
|000031c0| 65 61 64 49 6e 64 65 78 | 28 77 72 69 74 65 46 69 |eadIndex|(writeFi|
|000031d0| 65 6c 64 29 20 69 6e 74 | 6f 20 74 68 69 73 49 6e |eld) int|o thisIn|
|000031e0| 64 65 78 0d 70 75 74 20 | 74 68 65 20 6e 75 6d 62 |dex.put |the numb|
|000031f0| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 69 6e 20 74 |er of li|nes in t|
|00003200| 68 69 73 49 6e 64 65 78 | 20 69 6e 74 6f 20 6e 75 |hisIndex| into nu|
|00003210| 6d 62 65 72 4f 66 45 6e | 74 72 69 65 73 0d 73 65 |mberOfEn|tries.se|
|00003220| 74 20 63 75 72 73 6f 72 | 20 74 6f 20 77 61 74 63 |t cursor| to watc|
|00003230| 68 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 73 65 |h.lock s|creen.se|
|00003240| 74 20 6c 6f 63 6b 4d 65 | 73 73 61 67 65 73 20 74 |t lockMe|ssages t|
|00003250| 6f 20 74 72 75 65 0d 70 | 75 74 20 22 42 75 69 6c |o true.p|ut "Buil|
|00003260| 64 69 6e 67 20 70 6f 69 | 6e 74 65 72 73 20 66 6f |ding poi|nters fo|
|00003270| 72 22 20 26 26 20 77 72 | 69 74 65 46 69 65 6c 64 |r" && wr|iteField|
|00003280| 20 69 6e 74 6f 20 73 74 | 61 74 75 73 0d 72 65 70 | into st|atus.rep|
|00003290| 65 61 74 20 77 69 74 68 | 20 4e 20 3d 20 31 20 74 |eat with| N = 1 t|
|000032a0| 6f 20 6e 75 6d 62 65 72 | 4f 66 45 6e 74 72 69 65 |o number|OfEntrie|
|000032b0| 73 0d 73 68 6f 77 50 72 | 6f 67 72 65 73 73 20 73 |s.showPr|ogress s|
|000032c0| 74 61 74 75 73 2c 72 6f | 75 6e 64 28 4e 2f 28 6e |tatus,ro|und(N/(n|
|000032d0| 75 6d 62 65 72 4f 66 45 | 6e 74 72 69 65 73 29 2a |umberOfE|ntries)*|
|000032e0| 31 30 30 29 0d 70 75 74 | 20 6c 69 6e 65 20 4e 20 |100).put| line N |
|000032f0| 6f 66 20 74 68 69 73 49 | 6e 64 65 78 20 69 6e 74 |of thisI|ndex int|
|00003300| 6f 20 77 68 69 63 68 54 | 65 78 74 0d 69 66 20 77 |o whichT|ext.if w|
|00003310| 68 69 63 68 54 65 78 74 | 20 3d 20 65 6d 70 74 79 |hichText| = empty|
|00003320| 20 4f 52 20 77 68 69 63 | 68 54 65 78 74 20 3d 20 | OR whic|hText = |
|00003330| 73 70 61 63 65 20 74 68 | 65 6e 20 6e 65 78 74 20 |space th|en next |
|00003340| 72 65 70 65 61 74 0d 67 | 6f 20 63 64 20 31 20 6f |repeat.g|o cd 1 o|
|00003350| 66 20 62 67 20 22 74 68 | 65 20 63 6f 6c 6c 65 63 |f bg "th|e collec|
|00003360| 74 69 6f 6e 22 0d 70 75 | 74 20 65 6d 70 74 79 20 |tion".pu|t empty |
|00003370| 69 6e 74 6f 20 65 6e 74 | 72 69 65 73 0d 70 75 74 |into ent|ries.put|
|00003380| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 66 69 72 73 | empty i|nto firs|
|00003390| 74 43 61 72 64 0d 70 75 | 74 20 65 6d 70 74 79 20 |tCard.pu|t empty |
|000033a0| 69 6e 74 6f 20 63 75 72 | 72 65 6e 74 43 61 72 64 |into cur|rentCard|
|000033b0| 0d 72 65 70 65 61 74 0d | 66 69 6e 64 20 77 68 6f |.repeat.|find who|
|000033c0| 6c 65 20 77 68 69 63 68 | 54 65 78 74 20 69 6e 20 |le which|Text in |
|000033d0| 66 6c 64 20 69 6e 64 65 | 78 46 69 65 6c 64 0d 69 |fld inde|xField.i|
|000033e0| 66 20 74 68 65 20 66 6f | 75 6e 64 43 68 75 6e 6b |f the fo|undChunk|
|000033f0| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 2d | is empt|y then.-|
|00003400| 2d 54 68 65 20 74 65 78 | 74 20 77 61 73 6e 27 74 |-The tex|t wasn't|
|00003410| 20 66 6f 75 6e 64 20 69 | 6e 20 74 68 65 20 73 70 | found i|n the sp|
|00003420| 65 63 69 66 69 65 64 20 | 66 69 65 6c 64 2e 0d 65 |ecified |field..e|
|00003430| 78 69 74 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |xit repe|at.end i|
|00003440| 66 0d 70 75 74 20 77 6f | 72 64 20 32 20 6f 66 20 |f.put wo|rd 2 of |
|00003450| 74 68 65 20 66 6f 75 6e | 64 4c 69 6e 65 20 69 6e |the foun|dLine in|
|00003460| 74 6f 20 74 68 69 73 4c | 69 6e 65 0d 69 66 20 77 |to thisL|ine.if w|
|00003470| 68 69 63 68 54 65 78 74 | 20 3c 3e 20 6c 69 6e 65 |hichText| <> line|
|00003480| 20 74 68 69 73 4c 69 6e | 65 20 6f 66 20 66 6c 64 | thisLin|e of fld|
|00003490| 20 69 6e 64 65 78 46 69 | 65 6c 64 20 74 68 65 6e | indexFi|eld then|
|000034a0| 0d 2d 2d 54 68 65 72 65 | 20 77 61 73 20 61 20 66 |.--There| was a f|
|000034b0| 69 6e 64 2c 20 62 75 74 | 20 6e 6f 74 20 61 6e 20 |ind, but| not an |
|000034c0| 65 78 61 63 74 20 6d 61 | 74 63 68 2c 20 73 6f 20 |exact ma|tch, so |
|000034d0| 6c 6f 6f 6b 20 61 67 61 | 69 6e 2e 0d 6e 65 78 74 |look aga|in..next|
|000034e0| 20 72 65 70 65 61 74 0d | 65 6e 64 20 69 66 0d 69 | repeat.|end if.i|
|000034f0| 66 20 66 69 72 73 74 43 | 61 72 64 20 3d 20 65 6d |f firstC|ard = em|
|00003500| 70 74 79 20 74 68 65 6e | 0d 70 75 74 20 74 68 65 |pty then|.put the|
|00003510| 20 73 68 6f 72 74 20 69 | 64 20 6f 66 20 74 68 69 | short i|d of thi|
|00003520| 73 20 63 64 20 69 6e 74 | 6f 20 66 69 72 73 74 43 |s cd int|o firstC|
|00003530| 61 72 64 0d 65 6c 73 65 | 20 70 75 74 20 74 68 65 |ard.else| put the|
|00003540| 20 73 68 6f 72 74 20 69 | 64 20 6f 66 20 74 68 69 | short i|d of thi|
|00003550| 73 20 63 64 20 69 6e 74 | 6f 20 63 75 72 72 65 6e |s cd int|o curren|
|00003560| 74 43 61 72 64 0d 69 66 | 20 66 69 72 73 74 43 61 |tCard.if| firstCa|
|00003570| 72 64 20 3d 20 63 75 72 | 72 65 6e 74 43 61 72 64 |rd = cur|rentCard|
|00003580| 20 74 68 65 6e 0d 2d 2d | 79 6f 75 27 76 65 20 62 | then.--|you've b|
|00003590| 65 65 6e 20 74 6f 20 61 | 6c 6c 20 6f 66 20 74 68 |een to a|ll of th|
|000035a0| 65 20 76 61 6c 69 64 20 | 63 61 72 64 73 2e 0d 65 |e valid |cards..e|
|000035b0| 78 69 74 20 72 65 70 65 | 61 74 0d 65 6e 64 20 69 |xit repe|at.end i|
|000035c0| 66 0d 2d 2d 49 66 20 69 | 74 20 67 6f 74 20 74 68 |f.--If i|t got th|
|000035d0| 69 73 20 66 61 72 2c 20 | 74 68 65 6e 20 74 68 65 |is far, |then the|
|000035e0| 72 65 20 77 61 73 20 61 | 6e 20 65 78 61 63 74 20 |re was a|n exact |
|000035f0| 6d 61 74 63 68 2e 0d 70 | 75 74 20 62 67 20 66 6c |match..p|ut bg fl|
|00003600| 64 20 22 66 69 6c 65 20 | 6e 61 6d 65 20 66 69 65 |d "file |name fie|
|00003610| 6c 64 22 20 26 20 22 2c | 22 20 61 66 74 65 72 20 |ld" & ",|" after |
|00003620| 65 6e 74 72 69 65 73 0d | 65 6e 64 20 72 65 70 65 |entries.|end repe|
|00003630| 61 74 0d 70 75 74 20 74 | 68 65 20 6e 75 6d 62 65 |at.put t|he numbe|
|00003640| 72 20 6f 66 20 63 68 61 | 72 73 20 69 6e 20 77 68 |r of cha|rs in wh|
|00003650| 69 63 68 54 65 78 74 20 | 69 6e 74 6f 20 66 6c 64 |ichText |into fld|
|00003660| 4e 75 6d 62 65 72 0d 70 | 75 74 20 6c 61 73 74 20 |Number.p|ut last |
|00003670| 63 68 61 72 20 6f 66 20 | 66 6c 64 4e 75 6d 62 65 |char of |fldNumbe|
|00003680| 72 20 69 6e 74 6f 20 66 | 6c 64 4e 75 6d 62 65 72 |r into f|ldNumber|
|00003690| 0d 69 66 20 6c 61 73 74 | 20 63 68 61 72 20 6f 66 |.if last| char of|
|000036a0| 20 65 6e 74 72 69 65 73 | 20 69 73 20 22 2c 22 20 | entries| is "," |
|000036b0| 74 68 65 6e 20 64 65 6c | 65 74 65 20 6c 61 73 74 |then del|ete last|
|000036c0| 20 63 68 61 72 20 6f 66 | 20 65 6e 74 72 69 65 73 | char of| entries|
|000036d0| 0d 77 72 69 74 65 50 6f | 69 6e 74 65 72 20 65 6e |.writePo|inter en|
|000036e0| 74 72 69 65 73 2c 4e 2c | 70 6f 69 6e 74 65 72 46 |tries,N,|pointerF|
|000036f0| 69 65 6c 64 20 26 26 20 | 66 6c 64 4e 75 6d 62 65 |ield && |fldNumbe|
|00003700| 72 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 68 69 64 |r.end re|peat.hid|
|00003710| 65 50 72 6f 67 72 65 73 | 73 0d 65 6e 64 20 62 75 |eProgres|s.end bu|
|00003720| 69 6c 64 50 6f 69 6e 74 | 65 72 73 0d 0d 6f 6e 20 |ildPoint|ers..on |
|00003730| 77 72 69 74 65 50 6f 69 | 6e 74 65 72 20 6e 65 77 |writePoi|nter new|
|00003740| 50 6f 69 6e 74 65 72 2c | 6c 69 6e 65 4e 75 6d 62 |Pointer,|lineNumb|
|00003750| 65 72 2c 66 6c 64 4e 61 | 6d 65 0d 70 75 74 20 6e |er,fldNa|me.put n|
|00003760| 65 77 50 6f 69 6e 74 65 | 72 20 69 6e 74 6f 20 6c |ewPointe|r into l|
|00003770| 69 6e 65 20 6c 69 6e 65 | 4e 75 6d 62 65 72 20 6f |ine line|Number o|
|00003780| 66 20 63 64 20 66 6c 64 | 20 66 6c 64 4e 61 6d 65 |f cd fld| fldName|
|00003790| 20 c2 0d 6f 66 20 63 64 | 20 22 49 6e 64 65 78 20 | ..of cd| "Index |
|000037a0| 73 74 6f 72 61 67 65 22 | 0d 65 6e 64 20 77 72 69 |storage"|.end wri|
|000037b0| 74 65 50 6f 69 6e 74 65 | 72 0d 0d 2d 2d a5 a5 20 |tePointe|r..--.. |
|000037c0| 45 4e 44 20 41 47 53 20 | 4f 4e 4c 59 0d 0d 2d 2d |END AGS |ONLY..--|
|000037d0| a5 a5 20 46 55 4e 43 54 | 49 4f 4e 53 0d 0d 66 75 |.. FUNCT|IONS..fu|
|000037e0| 6e 63 74 69 6f 6e 20 64 | 69 73 6b 53 70 61 63 65 |nction d|iskSpace|
|000037f0| 41 76 61 69 6c 61 62 6c | 65 0d 2d 2d 20 52 65 74 |Availabl|e.-- Ret|
|00003800| 75 72 6e 20 74 72 75 65 | 20 69 66 20 74 68 65 20 |urn true| if the |
|00003810| 64 69 73 6b 20 73 70 61 | 63 65 20 61 76 61 69 6c |disk spa|ce avail|
|00003820| 61 62 6c 65 20 69 73 20 | 67 72 65 61 74 65 72 20 |able is |greater |
|00003830| 74 68 61 6e 20 74 68 65 | 0d 2d 2d 20 6c 69 6d 69 |than the|.-- limi|
|00003840| 74 20 67 69 76 65 6e 2e | 20 4f 74 68 65 72 77 69 |t given.| Otherwi|
|00003850| 73 65 2c 20 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |se, retu|rn false|
|00003860| 2e 0d 69 66 20 74 68 65 | 20 64 69 73 6b 53 70 61 |..if the| diskSpa|
|00003870| 63 65 20 3e 20 35 30 30 | 30 20 74 68 65 6e 20 72 |ce > 500|0 then r|
|00003880| 65 74 75 72 6e 20 74 72 | 75 65 0d 70 75 74 20 74 |eturn tr|ue.put t|
|00003890| 68 65 20 6c 6f 6e 67 20 | 6e 61 6d 65 20 6f 66 20 |he long |name of |
|000038a0| 74 68 69 73 20 73 74 61 | 63 6b 20 69 6e 74 6f 20 |this sta|ck into |
|000038b0| 73 74 61 63 6b 4e 61 6d | 65 0d 64 65 6c 65 74 65 |stackNam|e.delete|
|000038c0| 20 63 68 61 72 20 31 20 | 74 6f 20 37 20 6f 66 20 | char 1 |to 7 of |
|000038d0| 73 74 61 63 6b 4e 61 6d | 65 0d 64 65 6c 65 74 65 |stackNam|e.delete|
|000038e0| 20 6c 61 73 74 20 63 68 | 61 72 20 6f 66 20 73 74 | last ch|ar of st|
|000038f0| 61 63 6b 4e 61 6d 65 0d | 70 75 74 20 76 6f 6c 75 |ackName.|put volu|
|00003900| 6d 65 4e 61 6d 65 28 73 | 74 61 63 6b 4e 61 6d 65 |meName(s|tackName|
|00003910| 29 20 69 6e 74 6f 20 64 | 69 73 6b 4e 61 6d 65 0d |) into d|iskName.|
|00003920| 70 75 74 20 72 6f 75 6e | 64 28 74 68 65 20 64 69 |put roun|d(the di|
|00003930| 73 6b 53 70 61 63 65 20 | 2f 20 31 30 30 30 29 20 |skSpace |/ 1000) |
|00003940| 69 6e 74 6f 20 73 70 61 | 63 65 41 76 61 69 6c 61 |into spa|ceAvaila|
|00003950| 62 6c 65 0d 64 69 61 6c | 6f 67 49 74 20 22 54 68 |ble.dial|ogIt "Th|
|00003960| 65 72 65 20 69 73 22 20 | 26 26 20 73 70 61 63 65 |ere is" |&& space|
|00003970| 41 76 61 69 6c 61 62 6c | 65 20 26 20 22 4b 20 6f |Availabl|e & "K o|
|00003980| 66 20 64 69 73 6b 20 73 | 70 61 63 65 22 20 26 26 |f disk s|pace" &&|
|00003990| 20 c2 0d 22 61 76 61 69 | 6c 61 62 6c 65 20 6f 6e | .."avai|lable on|
|000039a0| 22 20 26 26 20 71 75 6f | 74 65 20 26 20 64 69 73 |" && quo|te & dis|
|000039b0| 6b 4e 61 6d 65 20 26 20 | 71 75 6f 74 65 20 26 20 |kName & |quote & |
|000039c0| 22 2e 20 53 69 6e 63 65 | 20 74 68 69 73 20 6d 61 |". Since| this ma|
|000039d0| 79 22 20 26 26 20 c2 0d | 22 6e 6f 74 20 62 65 20 |y" && ..|"not be |
|000039e0| 65 6e 6f 75 67 68 20 64 | 69 73 6b 20 73 70 61 63 |enough d|isk spac|
|000039f0| 65 20 74 6f 20 63 6f 6e | 74 69 6e 75 65 2c 20 74 |e to con|tinue, t|
|00003a00| 68 65 20 63 75 72 72 65 | 6e 74 20 74 61 73 6b 20 |he curre|nt task |
|00003a10| 68 61 73 20 62 65 65 6e | 22 20 26 26 20 c2 0d 22 |has been|" && .."|
|00003a20| 73 74 6f 70 70 65 64 2e | 20 59 6f 75 20 73 68 6f |stopped.| You sho|
|00003a30| 75 6c 64 20 6d 6f 76 65 | 20 74 68 69 73 20 73 74 |uld move| this st|
|00003a40| 61 63 6b 20 74 6f 20 61 | 20 64 69 73 6b 20 77 69 |ack to a| disk wi|
|00003a50| 74 68 20 6d 6f 72 65 22 | 20 26 26 20 c2 0d 22 73 |th more"| && .."s|
|00003a60| 70 61 63 65 20 61 76 61 | 69 6c 61 62 6c 65 20 62 |pace ava|ilable b|
|00003a70| 65 66 6f 72 65 20 63 6f | 6e 74 69 6e 75 69 6e 67 |efore co|ntinuing|
|00003a80| 20 74 68 69 73 20 74 61 | 73 6b 2e 22 0d 72 65 74 | this ta|sk.".ret|
|00003a90| 75 72 6e 20 66 61 6c 73 | 65 0d 65 6e 64 20 64 69 |urn fals|e.end di|
|00003aa0| 73 6b 53 70 61 63 65 41 | 76 61 69 6c 61 62 6c 65 |skSpaceA|vailable|
|00003ab0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 69 73 57 69 74 |..functi|on isWit|
|00003ac0| 68 69 6e 20 74 68 69 73 | 54 65 78 74 2c 20 63 6f |hin this|Text, co|
|00003ad0| 6e 74 61 69 6e 65 72 0d | 2d 2d 20 52 65 74 75 72 |ntainer.|-- Retur|
|00003ae0| 6e 20 74 72 75 65 20 6f | 66 20 74 68 69 73 54 65 |n true o|f thisTe|
|00003af0| 78 74 20 69 73 20 61 20 | 63 6f 6d 70 6c 65 74 65 |xt is a |complete|
|00003b00| 20 6c 69 6e 65 20 69 6e | 20 74 68 65 20 67 69 76 | line in| the giv|
|00003b10| 65 6e 20 63 6f 6e 74 61 | 69 6e 65 72 2e 0d 69 66 |en conta|iner..if|
|00003b20| 20 6c 69 6e 65 20 31 20 | 6f 66 20 63 6f 6e 74 61 | line 1 |of conta|
|00003b30| 69 6e 65 72 20 3d 20 74 | 68 69 73 54 65 78 74 20 |iner = t|hisText |
|00003b40| c2 0d 4f 52 20 63 6f 6e | 74 61 69 6e 65 72 20 63 |..OR con|tainer c|
|00003b50| 6f 6e 74 61 69 6e 73 20 | 72 65 74 75 72 6e 20 26 |ontains |return &|
|00003b60| 20 74 68 69 73 54 65 78 | 74 20 26 20 72 65 74 75 | thisTex|t & retu|
|00003b70| 72 6e 20 c2 0d 4f 52 20 | 74 68 69 73 54 65 78 74 |rn ..OR |thisText|
|00003b80| 20 3d 20 6c 61 73 74 20 | 6c 69 6e 65 20 6f 66 20 | = last |line of |
|00003b90| 63 6f 6e 74 61 69 6e 65 | 72 20 74 68 65 6e 20 72 |containe|r then r|
|00003ba0| 65 74 75 72 6e 20 74 72 | 75 65 0d 72 65 74 75 72 |eturn tr|ue.retur|
|00003bb0| 6e 20 66 61 6c 73 65 0d | 65 6e 64 20 69 73 57 69 |n false.|end isWi|
|00003bc0| 74 68 69 6e 0d 0d 66 75 | 6e 63 74 69 6f 6e 20 63 |thin..fu|nction c|
|00003bd0| 6c 69 63 6b 4c 69 6e 65 | 20 77 68 69 63 68 46 69 |lickLine| whichFi|
|00003be0| 65 6c 64 0d 2d 2d 20 52 | 65 74 75 72 6e 20 74 68 |eld.-- R|eturn th|
|00003bf0| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 65 20 |e number| of the |
|00003c00| 6c 69 6e 65 20 63 6c 69 | 63 6b 65 64 2e 0d 2d 2d |line cli|cked..--|
|00003c10| 20 46 69 72 73 74 2c 20 | 64 65 74 65 72 6d 69 6e | First, |determin|
|00003c20| 65 20 68 6f 77 20 6d 61 | 6e 79 20 6c 69 6e 65 73 |e how ma|ny lines|
|00003c30| 20 61 72 65 20 68 69 64 | 64 65 6e 20 61 62 6f 76 | are hid|den abov|
|00003c40| 65 0d 69 66 20 74 68 65 | 20 73 74 79 6c 65 20 6f |e.if the| style o|
|00003c50| 66 20 77 68 69 63 68 46 | 69 65 6c 64 20 69 73 20 |f whichF|ield is |
|00003c60| 22 73 63 72 6f 6c 6c 69 | 6e 67 22 20 74 68 65 6e |"scrolli|ng" then|
|00003c70| 0d 70 75 74 20 74 68 65 | 20 73 63 72 6f 6c 6c 20 |.put the| scroll |
|00003c80| 6f 66 20 77 68 69 63 68 | 46 69 65 6c 64 20 69 6e |of which|Field in|
|00003c90| 74 6f 20 74 68 65 53 63 | 72 6f 6c 6c 0d 65 6c 73 |to theSc|roll.els|
|00003ca0| 65 20 70 75 74 20 30 20 | 69 6e 74 6f 20 74 68 65 |e put 0 |into the|
|00003cb0| 53 63 72 6f 6c 6c 0d 70 | 75 74 20 28 74 68 65 53 |Scroll.p|ut (theS|
|00003cc0| 63 72 6f 6c 6c 20 2f 20 | 74 65 78 74 48 65 69 67 |croll / |textHeig|
|00003cd0| 68 74 20 6f 66 20 77 68 | 69 63 68 46 69 65 6c 64 |ht of wh|ichField|
|00003ce0| 29 20 69 6e 74 6f 20 6c | 69 6e 65 73 41 62 6f 76 |) into l|inesAbov|
|00003cf0| 65 0d 2d 2d 20 61 64 64 | 20 74 68 61 74 20 6e 75 |e.-- add| that nu|
|00003d00| 6d 62 65 72 20 74 6f 20 | 74 68 65 20 72 65 6c 61 |mber to |the rela|
|00003d10| 74 69 76 65 20 70 6f 73 | 69 74 69 6f 6e 20 63 6c |tive pos|ition cl|
|00003d20| 69 63 6b 65 64 0d 72 65 | 74 75 72 6e 20 72 6f 75 |icked.re|turn rou|
|00003d30| 6e 64 28 6c 69 6e 65 73 | 41 62 6f 76 65 20 2b 20 |nd(lines|Above + |
|00003d40| 6c 69 6e 65 43 6c 69 63 | 6b 65 64 28 77 68 69 63 |lineClic|ked(whic|
|00003d50| 68 46 69 65 6c 64 29 29 | 0d 65 6e 64 20 63 6c 69 |hField))|.end cli|
|00003d60| 63 6b 4c 69 6e 65 0d 0d | 66 75 6e 63 74 69 6f 6e |ckLine..|function|
|00003d70| 20 6c 69 6e 65 43 6c 69 | 63 6b 65 64 20 77 68 69 | lineCli|cked whi|
|00003d80| 63 68 46 69 65 6c 64 0d | 72 65 74 75 72 6e 20 28 |chField.|return (|
|00003d90| 28 74 68 65 20 6d 6f 75 | 73 65 56 20 2d 20 69 74 |(the mou|seV - it|
|00003da0| 65 6d 20 32 20 6f 66 20 | 74 68 65 20 72 65 63 74 |em 2 of |the rect|
|00003db0| 20 6f 66 20 77 68 69 63 | 68 46 69 65 6c 64 20 2d | of whic|hField -|
|00003dc0| 20 34 29 20 c2 0d 64 69 | 76 20 74 68 65 20 74 65 | 4) ..di|v the te|
|00003dd0| 78 74 68 65 69 67 68 74 | 20 6f 66 20 77 68 69 63 |xtheight| of whic|
|00003de0| 68 46 69 65 6c 64 29 20 | 2b 20 31 0d 65 6e 64 20 |hField) |+ 1.end |
|00003df0| 6c 69 6e 65 43 6c 69 63 | 6b 65 64 0d 0d 66 75 6e |lineClic|ked..fun|
|00003e00| 63 74 69 6f 6e 20 62 65 | 67 69 6e 45 6e 74 72 79 |ction be|ginEntry|
|00003e10| 4c 69 6e 65 20 65 6e 74 | 72 79 4e 75 6d 62 65 72 |Line ent|ryNumber|
|00003e20| 0d 69 66 20 65 6e 74 72 | 79 4e 75 6d 62 65 72 20 |.if entr|yNumber |
|00003e30| 3c 20 31 30 20 74 68 65 | 6e 20 72 65 74 75 72 6e |< 10 the|n return|
|00003e40| 20 73 70 61 63 65 20 26 | 20 73 70 61 63 65 0d 69 | space &| space.i|
|00003e50| 66 20 65 6e 74 72 79 4e | 75 6d 62 65 72 20 3c 20 |f entryN|umber < |
|00003e60| 31 30 30 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 |100 then| return |
|00003e70| 73 70 61 63 65 0d 69 66 | 20 65 6e 74 72 79 4e 75 |space.if| entryNu|
|00003e80| 6d 62 65 72 20 3c 20 31 | 30 30 30 20 74 68 65 6e |mber < 1|000 then|
|00003e90| 20 72 65 74 75 72 6e 20 | 65 6d 70 74 79 0d 65 6e | return |empty.en|
|00003ea0| 64 20 62 65 67 69 6e 45 | 6e 74 72 79 4c 69 6e 65 |d beginE|ntryLine|
|00003eb0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 69 73 45 76 65 |..functi|on isEve|
|00003ec0| 6e 4e 75 6d 62 65 72 20 | 77 68 61 74 53 74 72 69 |nNumber |whatStri|
|00003ed0| 6e 67 0d 2d 2d 72 65 74 | 75 72 6e 73 20 74 72 75 |ng.--ret|urns tru|
|00003ee0| 65 20 69 66 20 74 68 65 | 20 67 69 76 65 6e 20 73 |e if the| given s|
|00003ef0| 74 72 69 6e 67 20 69 73 | 20 61 6e 20 65 76 65 6e |tring is| an even|
|00003f00| 20 6e 75 6d 62 65 72 2e | 0d 69 66 20 6e 6f 74 20 | number.|.if not |
|00003f10| 70 6f 73 69 74 69 76 65 | 57 68 6f 6c 65 4e 75 6d |positive|WholeNum|
|00003f20| 62 65 72 28 77 68 61 74 | 53 74 72 69 6e 67 29 20 |ber(what|String) |
|00003f30| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 66 61 6c 73 |then ret|urn fals|
|00003f40| 65 0d 69 66 20 77 68 61 | 74 53 74 72 69 6e 67 20 |e.if wha|tString |
|00003f50| 6d 6f 64 20 32 20 3d 20 | 30 20 74 68 65 6e 20 72 |mod 2 = |0 then r|
|00003f60| 65 74 75 72 6e 20 74 72 | 75 65 0d 72 65 74 75 72 |eturn tr|ue.retur|
|00003f70| 6e 20 66 61 6c 73 65 0d | 65 6e 64 20 69 73 45 76 |n false.|end isEv|
|00003f80| 65 6e 4e 75 6d 62 65 72 | 0d 0d 66 75 6e 63 74 69 |enNumber|..functi|
|00003f90| 6f 6e 20 6c 69 6e 65 73 | 56 69 73 69 62 6c 65 20 |on lines|Visible |
|00003fa0| 77 68 69 63 68 46 6c 64 | 0d 2d 2d 72 65 74 75 72 |whichFld|.--retur|
|00003fb0| 6e 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |ns the n|umber of|
|00003fc0| 20 6c 69 6e 65 73 20 74 | 68 61 74 20 61 72 65 20 | lines t|hat are |
|00003fd0| 76 69 73 69 62 6c 65 20 | 69 6e 20 61 20 66 69 65 |visible |in a fie|
|00003fe0| 6c 64 2e 0d 72 65 74 75 | 72 6e 20 72 6f 75 6e 64 |ld..retu|rn round|
|00003ff0| 28 68 65 69 67 68 74 20 | 6f 66 20 77 68 69 63 68 |(height |of which|
|00004000| 46 6c 64 2f 74 68 65 20 | 74 65 78 74 48 65 69 67 |Fld/the |textHeig|
|00004010| 68 74 20 6f 66 20 77 68 | 69 63 68 46 6c 64 29 0d |ht of wh|ichFld).|
|00004020| 65 6e 64 20 6c 69 6e 65 | 73 56 69 73 69 62 6c 65 |end line|sVisible|
|00004030| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 72 65 61 64 49 |..functi|on readI|
|00004040| 6e 64 65 78 20 77 72 69 | 74 65 46 69 65 6c 64 0d |ndex wri|teField.|
|00004050| 72 65 74 75 72 6e 20 63 | 64 20 66 6c 64 20 77 72 |return c|d fld wr|
|00004060| 69 74 65 46 69 65 6c 64 | 20 6f 66 20 63 64 20 22 |iteField| of cd "|
|00004070| 49 6e 64 65 78 20 73 74 | 6f 72 61 67 65 22 0d 65 |Index st|orage".e|
|00004080| 6e 64 20 72 65 61 64 49 | 6e 64 65 78 0d 0d 66 75 |nd readI|ndex..fu|
|00004090| 6e 63 74 69 6f 6e 20 67 | 65 74 4c 69 6e 65 20 77 |nction g|etLine w|
|000040a0| 68 69 63 68 54 65 78 74 | 2c 63 6f 6e 74 61 69 6e |hichText|,contain|
|000040b0| 65 72 0d 2d 2d 57 68 65 | 72 65 20 77 68 69 63 68 |er.--Whe|re which|
|000040c0| 54 65 78 74 20 69 73 20 | 61 6e 79 20 74 65 78 74 |Text is |any text|
|000040d0| 20 73 74 72 69 6e 67 2e | 0d 2d 2d 52 65 74 75 72 | string.|.--Retur|
|000040e0| 6e 73 20 74 68 65 20 6c | 69 6e 65 20 6e 75 6d 62 |ns the l|ine numb|
|000040f0| 65 72 20 6f 66 20 74 68 | 65 20 67 69 76 65 6e 20 |er of th|e given |
|00004100| 74 65 78 74 20 69 6e 20 | 74 68 65 20 67 69 76 65 |text in |the give|
|00004110| 6e 20 63 6f 6e 74 61 69 | 6e 65 72 2e 0d 2d 2d 52 |n contai|ner..--R|
|00004120| 65 74 75 72 6e 73 20 65 | 6d 70 74 79 20 69 66 20 |eturns e|mpty if |
|00004130| 61 6e 20 65 6e 74 69 72 | 65 20 6c 69 6e 65 20 69 |an entir|e line i|
|00004140| 6e 20 74 68 65 20 63 6f | 6e 74 61 69 6e 65 72 20 |n the co|ntainer |
|00004150| 64 6f 65 73 20 6e 6f 74 | 20 65 71 75 61 6c 0d 2d |does not| equal.-|
|00004160| 2d 77 68 69 63 68 54 65 | 78 74 2e 0d 2d 2d 4e 6f |-whichTe|xt..--No|
|00004170| 74 65 20 74 68 61 74 20 | 4f 46 46 53 45 54 20 77 |te that |OFFSET w|
|00004180| 6f 6e 27 74 20 77 6f 72 | 6b 20 62 65 63 61 75 73 |on't wor|k becaus|
|00004190| 65 20 79 6f 75 27 72 65 | 20 6c 6f 6f 6b 69 6e 67 |e you're| looking|
|000041a0| 20 66 6f 72 0d 2d 2d 61 | 6e 20 65 6e 74 69 72 65 | for.--a|n entire|
|000041b0| 20 6c 69 6e 65 2c 20 6e | 6f 74 20 6a 75 73 74 20 | line, n|ot just |
|000041c0| 61 20 73 75 62 73 65 74 | 2e 0d 69 66 20 77 68 69 |a subset|..if whi|
|000041d0| 63 68 54 65 78 74 20 3d | 20 6c 69 6e 65 20 31 20 |chText =| line 1 |
|000041e0| 6f 66 20 63 6f 6e 74 61 | 69 6e 65 72 20 74 68 65 |of conta|iner the|
|000041f0| 6e 20 72 65 74 75 72 6e | 20 31 0d 70 75 74 20 6f |n return| 1.put o|
|00004200| 66 66 73 65 74 28 72 65 | 74 75 72 6e 20 26 20 77 |ffset(re|turn & w|
|00004210| 68 69 63 68 54 65 78 74 | 20 26 20 72 65 74 75 72 |hichText| & retur|
|00004220| 6e 2c 63 6f 6e 74 61 69 | 6e 65 72 29 20 69 6e 74 |n,contai|ner) int|
|00004230| 6f 20 74 68 65 43 68 61 | 72 73 0d 69 66 20 74 68 |o theCha|rs.if th|
|00004240| 65 43 68 61 72 73 20 3c | 3e 20 30 20 74 68 65 6e |eChars <|> 0 then|
|00004250| 0d 72 65 74 75 72 6e 20 | 28 74 68 65 20 6e 75 6d |.return |(the num|
|00004260| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 69 6e 20 |ber of l|ines in |
|00004270| 63 68 61 72 20 31 20 74 | 6f 20 74 68 65 43 68 61 |char 1 t|o theCha|
|00004280| 72 73 20 6f 66 20 63 6f | 6e 74 61 69 6e 65 72 29 |rs of co|ntainer)|
|00004290| 20 2b 20 31 0d 65 6e 64 | 20 69 66 0d 69 66 20 77 | + 1.end| if.if w|
|000042a0| 68 69 63 68 54 65 78 74 | 20 3d 20 6c 61 73 74 20 |hichText| = last |
|000042b0| 6c 69 6e 65 20 6f 66 20 | 63 6f 6e 74 61 69 6e 65 |line of |containe|
|000042c0| 72 20 74 68 65 6e 0d 72 | 65 74 75 72 6e 20 28 74 |r then.r|eturn (t|
|000042d0| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|000042e0| 65 73 20 69 6e 20 63 6f | 6e 74 61 69 6e 65 72 29 |es in co|ntainer)|
|000042f0| 0d 65 6e 64 20 69 66 0d | 72 65 74 75 72 6e 20 65 |.end if.|return e|
|00004300| 6d 70 74 79 0d 65 6e 64 | 20 67 65 74 4c 69 6e 65 |mpty.end| getLine|
|00004310| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 6c 69 73 74 44 |..functi|on listD|
|00004320| 69 61 6c 6f 67 20 74 68 | 65 6c 69 73 74 2c 64 65 |ialog th|elist,de|
|00004330| 6c 69 6d 69 74 2c 74 65 | 78 74 2c 73 65 6c 65 63 |limit,te|xt,selec|
|00004340| 74 4d 6f 64 65 2c 74 68 | 65 42 75 74 74 6f 6e 73 |tMode,th|eButtons|
|00004350| 2c 64 6c 6f 67 4e 6f 0d | 67 6c 6f 62 61 6c 20 4c |,dlogNo.|global L|
|00004360| 69 73 74 53 65 6c 65 63 | 74 45 78 69 74 0d 2d 2d |istSelec|tExit.--|
|00004370| 4c 69 73 74 53 65 6c 65 | 63 74 45 78 69 74 20 69 |ListSele|ctExit i|
|00004380| 73 20 74 68 65 20 6e 61 | 6d 65 20 6f 66 20 74 68 |s the na|me of th|
|00004390| 65 20 62 75 74 74 6f 6e | 20 74 68 65 20 75 73 65 |e button| the use|
|000043a0| 72 20 63 6c 69 63 6b 65 | 64 20 74 6f 20 6c 65 61 |r clicke|d to lea|
|000043b0| 76 65 0d 2d 2d 74 68 65 | 20 64 69 61 6c 6f 67 20 |ve.--the| dialog |
|000043c0| 62 6f 78 2e 0d 69 66 20 | 64 65 6c 69 6d 69 74 20 |box..if |delimit |
|000043d0| 69 73 20 31 33 20 74 68 | 65 6e 20 70 75 74 20 72 |is 13 th|en put r|
|000043e0| 65 74 75 72 6e 20 69 6e | 74 6f 20 64 65 6c 69 6d |eturn in|to delim|
|000043f0| 69 74 0d 67 65 74 20 4c | 69 73 74 53 65 6c 65 63 |it.get L|istSelec|
|00004400| 74 28 73 65 6c 65 63 74 | 4d 6f 64 65 2c 74 68 65 |t(select|Mode,the|
|00004410| 4c 69 73 74 2c 74 65 78 | 74 2c 74 68 65 42 75 74 |List,tex|t,theBut|
|00004420| 74 6f 6e 73 2c 64 65 6c | 69 6d 69 74 2c 64 6c 6f |tons,del|imit,dlo|
|00004430| 67 4e 6f 29 0d 72 65 74 | 75 72 6e 20 69 74 0d 65 |gNo).ret|urn it.e|
|00004440| 6e 64 20 6c 69 73 74 44 | 69 61 6c 6f 67 0d 0d 66 |nd listD|ialog..f|
|00004450| 75 6e 63 74 69 6f 6e 20 | 73 6f 72 74 43 6f 6e 74 |unction |sortCont|
|00004460| 61 69 6e 65 72 20 77 68 | 69 63 68 43 6f 6e 74 61 |ainer wh|ichConta|
|00004470| 69 6e 65 72 0d 2d 2d 72 | 65 74 75 72 6e 73 20 74 |iner.--r|eturns t|
|00004480| 68 65 20 67 69 76 65 6e | 20 63 6f 6e 74 61 69 6e |he given| contain|
|00004490| 65 72 20 73 6f 72 74 65 | 64 20 61 6c 70 68 61 62 |er sorte|d alphab|
|000044a0| 65 74 69 63 61 6c 6c 79 | 2e 0d 70 75 74 20 61 6c |etically|..put al|
|000044b0| 70 68 61 53 6f 72 74 28 | 77 68 69 63 68 43 6f 6e |phaSort(|whichCon|
|000044c0| 74 61 69 6e 65 72 29 20 | 69 6e 74 6f 20 69 74 0d |tainer) |into it.|
|000044d0| 72 65 74 75 72 6e 20 69 | 74 0d 65 6e 64 20 73 6f |return i|t.end so|
|000044e0| 72 74 43 6f 6e 74 61 69 | 6e 65 72 0d 0d 66 75 6e |rtContai|ner..fun|
|000044f0| 63 74 69 6f 6e 20 73 75 | 62 73 74 69 74 75 74 65 |ction su|bstitute|
|00004500| 20 6f 72 69 67 69 6e 61 | 6c 43 68 61 72 2c 20 6e | origina|lChar, n|
|00004510| 65 77 43 68 61 72 2c 20 | 77 68 69 63 68 43 6f 6e |ewChar, |whichCon|
|00004520| 74 61 69 6e 65 72 0d 2d | 2d 72 65 74 75 72 6e 73 |tainer.-|-returns|
|00004530| 20 74 68 65 20 67 69 76 | 65 6e 20 63 6f 6e 74 61 | the giv|en conta|
|00004540| 69 6e 65 72 20 77 69 74 | 68 20 74 68 65 20 67 69 |iner wit|h the gi|
|00004550| 76 65 6e 20 65 78 69 73 | 74 69 6e 67 20 63 68 61 |ven exis|ting cha|
|00004560| 72 61 63 74 65 72 0d 2d | 2d 73 75 62 73 74 69 74 |racter.-|-substit|
|00004570| 75 74 65 64 20 69 6e 20 | 61 6c 6c 20 63 61 73 65 |uted in |all case|
|00004580| 73 20 66 6f 72 20 74 68 | 65 20 67 69 76 65 6e 20 |s for th|e given |
|00004590| 6e 65 77 20 63 68 61 72 | 61 63 74 65 72 2e 0d 72 |new char|acter..r|
|000045a0| 65 70 65 61 74 0d 70 75 | 74 20 6f 66 66 73 65 74 |epeat.pu|t offset|
|000045b0| 28 6f 72 69 67 69 6e 61 | 6c 43 68 61 72 2c 77 68 |(origina|lChar,wh|
|000045c0| 69 63 68 43 6f 6e 74 61 | 69 6e 65 72 29 20 69 6e |ichConta|iner) in|
|000045d0| 74 6f 20 77 68 69 63 68 | 43 68 61 72 0d 69 66 20 |to which|Char.if |
|000045e0| 77 68 69 63 68 43 68 61 | 72 20 3d 20 30 20 74 68 |whichCha|r = 0 th|
|000045f0| 65 6e 20 65 78 69 74 20 | 72 65 70 65 61 74 0d 70 |en exit |repeat.p|
|00004600| 75 74 20 6e 65 77 43 68 | 61 72 20 69 6e 74 6f 20 |ut newCh|ar into |
|00004610| 63 68 61 72 20 77 68 69 | 63 68 43 68 61 72 20 6f |char whi|chChar o|
|00004620| 66 20 77 68 69 63 68 43 | 6f 6e 74 61 69 6e 65 72 |f whichC|ontainer|
|00004630| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|00004640| 72 6e 20 77 68 69 63 68 | 43 6f 6e 74 61 69 6e 65 |rn which|Containe|
|00004650| 72 0d 65 6e 64 20 73 75 | 62 73 74 69 74 75 74 65 |r.end su|bstitute|
|00004660| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 76 61 6c 69 64 |..functi|on valid|
|00004670| 4c 69 73 74 4e 61 6d 65 | 20 77 68 69 63 68 4e 61 |ListName| whichNa|
|00004680| 6d 65 0d 69 66 20 77 68 | 69 63 68 4e 61 6d 65 20 |me.if wh|ichName |
|00004690| 69 73 20 65 6d 70 74 79 | 20 74 68 65 6e 20 72 65 |is empty| then re|
|000046a0| 74 75 72 6e 20 66 61 6c | 73 65 0d 69 66 20 77 68 |turn fal|se.if wh|
|000046b0| 69 63 68 4e 61 6d 65 20 | 69 73 20 22 55 6e 74 69 |ichName |is "Unti|
|000046c0| 74 6c 65 64 22 20 74 68 | 65 6e 0d 61 6e 73 77 65 |tled" th|en.answe|
|000046d0| 72 20 22 4c 69 73 74 20 | 63 61 6e 27 74 20 62 65 |r "List |can't be|
|000046e0| 20 6e 61 6d 65 64 20 55 | 6e 74 69 74 6c 65 64 2e | named U|ntitled.|
|000046f0| 22 0d 72 65 74 75 72 6e | 20 66 61 6c 73 65 0d 65 |".return| false.e|
|00004700| 6e 64 20 69 66 0d 69 66 | 20 77 68 69 63 68 4e 61 |nd if.if| whichNa|
|00004710| 6d 65 20 69 73 20 22 69 | 64 22 20 74 68 65 6e 0d |me is "i|d" then.|
|00004720| 61 6e 73 77 65 72 20 22 | 4c 69 73 74 73 20 63 61 |answer "|Lists ca|
|00004730| 6e 27 74 20 62 65 20 6e | 61 6d 65 64 20 49 44 2e |n't be n|amed ID.|
|00004740| 22 0d 72 65 74 75 72 6e | 20 66 61 6c 73 65 0d 65 |".return| false.e|
|00004750| 6e 64 20 69 66 0d 69 66 | 20 74 68 65 20 6c 65 6e |nd if.if| the len|
|00004760| 67 74 68 20 6f 66 20 77 | 68 69 63 68 4e 61 6d 65 |gth of w|hichName|
|00004770| 20 3e 20 31 35 20 74 68 | 65 6e 0d 61 6e 73 77 65 | > 15 th|en.answe|
|00004780| 72 20 22 4c 69 73 74 20 | 6e 61 6d 65 73 20 63 61 |r "List |names ca|
|00004790| 6e 6e 6f 74 20 68 61 76 | 65 20 6d 6f 72 65 20 74 |nnot hav|e more t|
|000047a0| 68 61 6e 20 31 35 20 6c | 65 74 74 65 72 73 2e 22 |han 15 l|etters."|
|000047b0| 0d 72 65 74 75 72 6e 20 | 66 61 6c 73 65 0d 65 6e |.return |false.en|
|000047c0| 64 20 69 66 0d 69 66 20 | 6e 6f 6e 4e 65 67 61 74 |d if.if |nonNegat|
|000047d0| 69 76 65 4e 75 6d 62 65 | 72 28 77 68 69 63 68 4e |iveNumbe|r(whichN|
|000047e0| 61 6d 65 29 20 74 68 65 | 6e 0d 64 69 61 6c 6f 67 |ame) the|n.dialog|
|000047f0| 49 74 20 22 4c 69 73 74 | 20 6e 61 6d 65 73 20 6d |It "List| names m|
|00004800| 75 73 74 20 63 6f 6e 74 | 61 69 6e 20 61 74 20 6c |ust cont|ain at l|
|00004810| 65 61 73 74 20 6f 6e 65 | 20 6c 65 74 74 65 72 2e |east one| letter.|
|00004820| 22 20 26 26 20 c2 0d 22 | 54 68 65 20 6c 69 73 74 |" && .."|The list|
|00004830| 20 6e 61 6d 65 22 20 26 | 26 20 71 75 6f 74 65 20 | name" &|& quote |
|00004840| 26 20 77 68 69 63 68 4e | 61 6d 65 20 26 20 71 75 |& whichN|ame & qu|
|00004850| 6f 74 65 20 26 26 20 22 | 69 73 20 69 6e 76 61 6c |ote && "|is inval|
|00004860| 69 64 2e 22 0d 72 65 74 | 75 72 6e 20 66 61 6c 73 |id.".ret|urn fals|
|00004870| 65 0d 65 6e 64 20 69 66 | 0d 67 6f 4c 69 73 74 53 |e.end if|.goListS|
|00004880| 74 61 63 6b 0d 69 66 20 | 74 68 65 20 72 65 73 75 |tack.if |the resu|
|00004890| 6c 74 20 69 73 20 22 6e | 6f 22 20 74 68 65 6e 0d |lt is "n|o" then.|
|000048a0| 70 6f 70 20 63 64 0d 65 | 78 69 74 20 74 6f 20 68 |pop cd.e|xit to h|
|000048b0| 79 70 65 72 63 61 72 64 | 0d 65 6e 64 20 69 66 0d |ypercard|.end if.|
|000048c0| 67 6f 20 62 67 20 22 6c | 69 73 74 73 22 0d 72 65 |go bg "l|ists".re|
|000048d0| 70 65 61 74 20 77 69 74 | 68 20 69 20 3d 20 31 20 |peat wit|h i = 1 |
|000048e0| 74 6f 20 28 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |to (the |number o|
|000048f0| 66 20 63 64 73 20 69 6e | 20 74 68 69 73 20 62 67 |f cds in| this bg|
|00004900| 29 0d 69 66 20 74 68 65 | 20 73 68 6f 72 74 20 6e |).if the| short n|
|00004910| 61 6d 65 20 6f 66 20 74 | 68 69 73 20 63 64 20 3d |ame of t|his cd =|
|00004920| 20 77 68 69 63 68 4e 61 | 6d 65 20 74 68 65 6e 0d | whichNa|me then.|
|00004930| 64 69 61 6c 6f 67 49 74 | 20 22 54 68 65 72 65 20 |dialogIt| "There |
|00004940| 69 73 20 61 6c 72 65 61 | 64 79 20 61 20 6c 69 73 |is alrea|dy a lis|
|00004950| 74 20 6e 61 6d 65 64 22 | 20 26 26 71 75 6f 74 65 |t named"| &&quote|
|00004960| 26 20 c2 0d 77 68 69 63 | 68 4e 61 6d 65 20 26 71 |& ..whic|hName &q|
|00004970| 75 6f 74 65 26 20 22 2e | 20 50 6c 65 61 73 65 20 |uote& ".| Please |
|00004980| 75 73 65 20 61 20 64 69 | 66 66 65 72 65 6e 74 20 |use a di|fferent |
|00004990| 6e 61 6d 65 2e 22 0d 72 | 65 74 75 72 6e 20 66 61 |name.".r|eturn fa|
|000049a0| 6c 73 65 0d 65 6e 64 20 | 69 66 0d 67 6f 20 6e 65 |lse.end |if.go ne|
|000049b0| 78 74 20 63 64 20 6f 66 | 20 74 68 69 73 20 62 67 |xt cd of| this bg|
|000049c0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|000049d0| 72 6e 20 74 72 75 65 0d | 65 6e 64 20 76 61 6c 69 |rn true.|end vali|
|000049e0| 64 4c 69 73 74 4e 61 6d | 65 0d 0d 66 75 6e 63 74 |dListNam|e..funct|
|000049f0| 69 6f 6e 20 70 6f 73 69 | 74 69 76 65 57 68 6f 6c |ion posi|tiveWhol|
|00004a00| 65 4e 75 6d 62 65 72 20 | 77 68 61 74 53 74 72 69 |eNumber |whatStri|
|00004a10| 6e 67 0d 2d 2d 20 49 66 | 20 77 68 61 74 53 74 72 |ng.-- If| whatStr|
|00004a20| 69 6e 67 20 69 73 20 61 | 20 70 6f 73 69 74 69 76 |ing is a| positiv|
|00004a30| 65 20 77 68 6f 6c 65 20 | 6e 75 6d 62 65 72 2c 20 |e whole |number, |
|00004a40| 72 65 74 75 72 6e 73 20 | 74 72 75 65 2e 0d 2d 2d |returns |true..--|
|00004a50| 20 4f 74 68 65 72 77 69 | 73 65 2c 20 72 65 74 75 | Otherwi|se, retu|
|00004a60| 72 6e 73 20 66 61 6c 73 | 65 2e 0d 69 66 20 6e 6f |rns fals|e..if no|
|00004a70| 74 20 63 6f 6e 74 61 69 | 6e 73 41 4e 75 6d 62 65 |t contai|nsANumbe|
|00004a80| 72 28 77 68 61 74 53 74 | 72 69 6e 67 29 20 74 68 |r(whatSt|ring) th|
|00004a90| 65 6e 20 72 65 74 75 72 | 6e 20 66 61 6c 73 65 0d |en retur|n false.|
|00004aa0| 72 65 70 65 61 74 20 77 | 69 74 68 20 69 20 3d 20 |repeat w|ith i = |
|00004ab0| 31 20 74 6f 20 74 68 65 | 20 6c 65 6e 67 74 68 20 |1 to the| length |
|00004ac0| 6f 66 20 77 68 61 74 53 | 74 72 69 6e 67 0d 69 66 |of whatS|tring.if|
|00004ad0| 20 22 31 32 33 34 35 36 | 37 38 39 30 22 20 63 6f | "123456|7890" co|
|00004ae0| 6e 74 61 69 6e 73 20 63 | 68 61 72 20 69 20 6f 66 |ntains c|har i of|
|00004af0| 20 77 68 61 74 53 74 72 | 69 6e 67 20 74 68 65 6e | whatStr|ing then|
|00004b00| 20 6e 65 78 74 20 72 65 | 70 65 61 74 0d 65 6c 73 | next re|peat.els|
|00004b10| 65 20 72 65 74 75 72 6e | 20 66 61 6c 73 65 0d 65 |e return| false.e|
|00004b20| 6e 64 20 72 65 70 65 61 | 74 0d 2d 2d 20 54 68 65 |nd repea|t.-- The|
|00004b30| 20 66 69 6e 61 6c 20 74 | 65 73 74 0d 69 66 20 77 | final t|est.if w|
|00004b40| 68 61 74 53 74 72 69 6e | 67 20 3e 20 30 20 74 68 |hatStrin|g > 0 th|
|00004b50| 65 6e 20 72 65 74 75 72 | 6e 20 74 72 75 65 0d 65 |en retur|n true.e|
|00004b60| 6c 73 65 20 72 65 74 75 | 72 6e 20 66 61 6c 73 65 |lse retu|rn false|
|00004b70| 0d 65 6e 64 20 70 6f 73 | 69 74 69 76 65 57 68 6f |.end pos|itiveWho|
|00004b80| 6c 65 4e 75 6d 62 65 72 | 0d 0d 66 75 6e 63 74 69 |leNumber|..functi|
|00004b90| 6f 6e 20 6e 6f 6e 4e 65 | 67 61 74 69 76 65 4e 75 |on nonNe|gativeNu|
|00004ba0| 6d 62 65 72 20 77 68 61 | 74 53 74 72 69 6e 67 0d |mber wha|tString.|
|00004bb0| 2d 2d 72 65 74 75 72 6e | 73 20 74 72 75 65 20 69 |--return|s true i|
|00004bc0| 66 20 74 68 65 20 67 69 | 76 65 6e 20 73 74 72 69 |f the gi|ven stri|
|00004bd0| 6e 67 20 69 73 20 61 20 | 6e 6f 6e 2d 6e 65 67 61 |ng is a |non-nega|
|00004be0| 74 69 76 65 20 6e 75 6d | 62 65 72 2e 0d 69 66 20 |tive num|ber..if |
|00004bf0| 63 6f 6e 74 61 69 6e 73 | 41 4e 75 6d 62 65 72 28 |contains|ANumber(|
|00004c00| 77 68 61 74 53 74 72 69 | 6e 67 29 20 3d 20 66 61 |whatStri|ng) = fa|
|00004c10| 6c 73 65 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 |lse then| return |
|00004c20| 66 61 6c 73 65 0d 72 65 | 70 65 61 74 20 77 69 74 |false.re|peat wit|
|00004c30| 68 20 69 20 3d 20 31 20 | 74 6f 20 74 68 65 20 6c |h i = 1 |to the l|
|00004c40| 65 6e 67 74 68 20 6f 66 | 20 77 68 61 74 53 74 72 |ength of| whatStr|
|00004c50| 69 6e 67 0d 69 66 20 22 | 2e 31 32 33 34 35 36 37 |ing.if "|.1234567|
|00004c60| 38 39 30 22 20 63 6f 6e | 74 61 69 6e 73 20 63 68 |890" con|tains ch|
|00004c70| 61 72 20 69 20 6f 66 20 | 77 68 61 74 53 74 72 69 |ar i of |whatStri|
|00004c80| 6e 67 20 74 68 65 6e 20 | 6e 65 78 74 20 72 65 70 |ng then |next rep|
|00004c90| 65 61 74 20 65 6c 73 65 | 0d 2d 2d 20 69 66 20 69 |eat else|.-- if i|
|00004ca0| 74 20 6d 61 6b 65 73 20 | 69 74 20 68 65 72 65 2c |t makes |it here,|
|00004cb0| 20 74 68 65 72 65 20 69 | 73 20 61 6e 20 69 6e 76 | there i|s an inv|
|00004cc0| 61 6c 69 64 20 63 68 61 | 72 61 63 74 65 72 2c 0d |alid cha|racter,.|
|00004cd0| 2d 2d 20 73 6f 20 65 78 | 69 74 20 6e 6f 77 2e 0d |-- so ex|it now..|
|00004ce0| 72 65 74 75 72 6e 20 66 | 61 6c 73 65 0d 65 6e 64 |return f|alse.end|
|00004cf0| 20 69 66 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 72 | if.end |repeat.r|
|00004d00| 65 74 75 72 6e 20 74 72 | 75 65 0d 65 6e 64 20 6e |eturn tr|ue.end n|
|00004d10| 6f 6e 4e 65 67 61 74 69 | 76 65 4e 75 6d 62 65 72 |onNegati|veNumber|
|00004d20| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 63 6f 6e 74 61 |..functi|on conta|
|00004d30| 69 6e 73 41 4e 75 6d 62 | 65 72 20 77 68 61 74 53 |insANumb|er whatS|
|00004d40| 74 72 69 6e 67 0d 2d 2d | 72 65 74 75 72 6e 73 20 |tring.--|returns |
|00004d50| 74 72 75 65 20 69 66 20 | 61 74 20 6c 65 61 73 74 |true if |at least|
|00004d60| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 63 68 61 72 | one of |the char|
|00004d70| 61 63 74 65 72 73 20 69 | 6e 20 74 68 65 0d 2d 2d |acters i|n the.--|
|00004d80| 73 74 72 69 6e 67 20 69 | 73 20 61 20 6e 75 6d 62 |string i|s a numb|
|00004d90| 65 72 2e 20 4f 74 68 65 | 72 77 69 73 65 2c 20 72 |er. Othe|rwise, r|
|00004da0| 65 74 75 72 6e 73 20 66 | 61 6c 73 65 0d 72 65 70 |eturns f|alse.rep|
|00004db0| 65 61 74 20 77 69 74 68 | 20 69 20 3d 20 31 20 74 |eat with| i = 1 t|
|00004dc0| 6f 20 74 68 65 20 6c 65 | 6e 67 74 68 20 6f 66 20 |o the le|ngth of |
|00004dd0| 77 68 61 74 53 74 72 69 | 6e 67 0d 69 66 20 22 31 |whatStri|ng.if "1|
|00004de0| 32 33 34 35 36 37 38 39 | 30 22 20 63 6f 6e 74 61 |23456789|0" conta|
|00004df0| 69 6e 73 20 63 68 61 72 | 20 69 20 6f 66 20 77 68 |ins char| i of wh|
|00004e00| 61 74 53 74 72 69 6e 67 | 20 74 68 65 6e 0d 2d 2d |atString| then.--|
|00004e10| 74 68 65 72 65 20 69 73 | 20 61 74 20 6c 65 61 73 |there is| at leas|
|00004e20| 74 20 6f 6e 65 20 6e 75 | 6d 62 65 72 2c 20 73 6f |t one nu|mber, so|
|00004e30| 20 67 6f 20 74 6f 20 74 | 68 65 20 6e 65 78 74 20 | go to t|he next |
|00004e40| 74 65 73 74 2e 0d 65 78 | 69 74 20 72 65 70 65 61 |test..ex|it repea|
|00004e50| 74 0d 65 6c 73 65 20 69 | 66 20 69 20 3d 20 74 68 |t.else i|f i = th|
|00004e60| 65 20 6c 65 6e 67 74 68 | 20 6f 66 20 77 68 61 74 |e length| of what|
|00004e70| 53 74 72 69 6e 67 20 74 | 68 65 6e 0d 2d 2d 79 6f |String t|hen.--yo|
|00004e80| 75 27 76 65 20 67 6f 6e | 65 20 74 68 72 6f 75 67 |u've gon|e throug|
|00004e90| 68 20 61 6c 6c 20 63 68 | 61 72 61 63 74 65 72 73 |h all ch|aracters|
|00004ea0| 20 26 20 74 68 65 72 65 | 20 61 72 65 6e 27 74 20 | & there| aren't |
|00004eb0| 61 6e 79 20 6e 75 6d 62 | 65 72 73 2e 0d 72 65 74 |any numb|ers..ret|
|00004ec0| 75 72 6e 20 66 61 6c 73 | 65 0d 65 6e 64 20 69 66 |urn fals|e.end if|
|00004ed0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 72 65 74 75 |.end rep|eat.retu|
|00004ee0| 72 6e 20 74 72 75 65 0d | 65 6e 64 20 63 6f 6e 74 |rn true.|end cont|
|00004ef0| 61 69 6e 73 41 4e 75 6d | 62 65 72 0d 0d 66 75 6e |ainsANum|ber..fun|
|00004f00| 63 74 69 6f 6e 20 67 65 | 74 53 68 6f 72 74 4e 61 |ction ge|tShortNa|
|00004f10| 6d 65 20 6c 6f 6e 67 4e | 61 6d 65 0d 2d 2d 20 47 |me longN|ame.-- G|
|00004f20| 69 76 65 6e 20 74 68 65 | 20 70 61 74 68 20 74 6f |iven the| path to|
|00004f30| 20 61 20 66 69 6c 65 2c | 20 72 65 74 75 72 6e 20 | a file,| return |
|00004f40| 74 68 65 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |the name| of the |
|00004f50| 66 69 6c 65 2e 0d 72 65 | 70 65 61 74 0d 69 66 20 |file..re|peat.if |
|00004f60| 6c 6f 6e 67 4e 61 6d 65 | 20 63 6f 6e 74 61 69 6e |longName| contain|
|00004f70| 73 20 22 3a 22 20 74 68 | 65 6e 0d 70 75 74 20 6f |s ":" th|en.put o|
|00004f80| 66 66 73 65 74 20 28 22 | 3a 22 2c 6c 6f 6e 67 4e |ffset ("|:",longN|
|00004f90| 61 6d 65 29 20 69 6e 74 | 6f 20 74 68 69 73 43 68 |ame) int|o thisCh|
|00004fa0| 61 72 0d 64 65 6c 65 74 | 65 20 63 68 61 72 20 31 |ar.delet|e char 1|
|00004fb0| 20 74 6f 20 74 68 69 73 | 43 68 61 72 20 6f 66 20 | to this|Char of |
|00004fc0| 6c 6f 6e 67 4e 61 6d 65 | 0d 65 6c 73 65 20 65 78 |longName|.else ex|
|00004fd0| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 72 65 |it repea|t.end re|
|00004fe0| 70 65 61 74 0d 72 65 74 | 75 72 6e 20 6c 6f 6e 67 |peat.ret|urn long|
|00004ff0| 4e 61 6d 65 0d 65 6e 64 | 20 67 65 74 53 68 6f 72 |Name.end| getShor|
|00005000| 74 4e 61 6d 65 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |tName..f|unction |
|00005010| 67 65 74 50 61 74 68 20 | 6c 6f 6e 67 4e 61 6d 65 |getPath |longName|
|00005020| 0d 2d 2d 20 47 69 76 65 | 6e 20 74 68 65 20 66 75 |.-- Give|n the fu|
|00005030| 6c 6c 20 70 61 74 68 20 | 74 6f 20 61 20 66 69 6c |ll path |to a fil|
|00005040| 65 2c 20 72 65 74 75 72 | 6e 0d 2d 2d 20 74 68 65 |e, retur|n.-- the|
|00005050| 20 70 61 74 68 20 74 6f | 20 74 68 65 20 66 69 6c | path to| the fil|
|00005060| 65 20 6d 69 6e 75 73 20 | 74 68 65 20 6e 61 6d 65 |e minus |the name|
|00005070| 20 6f 66 20 74 68 65 20 | 66 69 6c 65 2e 0d 72 65 | of the |file..re|
|00005080| 70 65 61 74 0d 69 66 20 | 6c 61 73 74 20 63 68 61 |peat.if |last cha|
|00005090| 72 20 6f 66 20 6c 6f 6e | 67 4e 61 6d 65 20 3c 3e |r of lon|gName <>|
|000050a0| 20 22 3a 22 20 74 68 65 | 6e 20 64 65 6c 65 74 65 | ":" the|n delete|
|000050b0| 20 6c 61 73 74 20 63 68 | 61 72 20 6f 66 20 6c 6f | last ch|ar of lo|
|000050c0| 6e 67 4e 61 6d 65 0d 65 | 6c 73 65 20 65 78 69 74 |ngName.e|lse exit|
|000050d0| 20 72 65 70 65 61 74 0d | 65 6e 64 20 72 65 70 65 | repeat.|end repe|
|000050e0| 61 74 0d 72 65 74 75 72 | 6e 20 6c 6f 6e 67 4e 61 |at.retur|n longNa|
|000050f0| 6d 65 0d 65 6e 64 20 67 | 65 74 50 61 74 68 0d 0d |me.end g|etPath..|
|00005100| 66 75 6e 63 74 69 6f 6e | 20 76 6f 6c 75 6d 65 4e |function| volumeN|
|00005110| 61 6d 65 20 70 61 74 68 | 4e 61 6d 65 0d 2d 2d 20 |ame path|Name.-- |
|00005120| 47 69 76 65 6e 20 74 68 | 65 20 66 75 6c 6c 20 70 |Given th|e full p|
|00005130| 61 74 68 20 74 6f 20 61 | 20 66 69 6c 65 2c 20 72 |ath to a| file, r|
|00005140| 65 74 75 72 6e 0d 2d 2d | 20 74 68 65 20 6e 61 6d |eturn.--| the nam|
|00005150| 65 20 6f 66 20 74 68 65 | 20 76 6f 6c 75 6d 65 20 |e of the| volume |
|00005160| 28 69 2e 65 2e 2c 20 74 | 68 65 20 64 69 73 6b 20 |(i.e., t|he disk |
|00005170| 6e 61 6d 65 2c 20 6f 72 | 20 74 6f 70 20 64 69 72 |name, or| top dir|
|00005180| 65 63 74 6f 72 79 29 2e | 0d 70 75 74 20 6f 66 66 |ectory).|.put off|
|00005190| 73 65 74 28 22 3a 22 2c | 70 61 74 68 4e 61 6d 65 |set(":",|pathName|
|000051a0| 29 20 69 6e 74 6f 20 74 | 68 65 43 68 61 72 73 0d |) into t|heChars.|
|000051b0| 72 65 74 75 72 6e 20 63 | 68 61 72 20 31 20 74 6f |return c|har 1 to|
|000051c0| 20 28 74 68 65 43 68 61 | 72 73 20 2d 20 31 29 20 | (theCha|rs - 1) |
|000051d0| 6f 66 20 70 61 74 68 4e | 61 6d 65 0d 65 6e 64 20 |of pathN|ame.end |
|000051e0| 76 6f 6c 75 6d 65 4e 61 | 6d 65 0d 0d 2d 2d a5 a5 |volumeNa|me..--..|
|000051f0| 20 46 55 4e 43 54 49 4f | 4e 53 20 28 41 47 53 20 | FUNCTIO|NS (AGS |
|00005200| 4f 4e 4c 59 29 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |ONLY)..f|unction |
|00005210| 61 6c 6c 46 6f 75 6e 64 | 50 72 65 66 69 78 20 77 |allFound|Prefix w|
|00005220| 68 69 63 68 54 65 78 74 | 2c 64 69 61 6c 6f 67 50 |hichText|,dialogP|
|00005230| 68 72 61 73 65 0d 69 66 | 20 74 68 65 20 6e 75 6d |hrase.if| the num|
|00005240| 62 65 72 20 6f 66 20 6c | 69 6e 65 73 20 69 6e 20 |ber of l|ines in |
|00005250| 77 68 69 63 68 54 65 78 | 74 20 3d 20 31 20 74 68 |whichTex|t = 1 th|
|00005260| 65 6e 0d 72 65 74 75 72 | 6e 20 22 59 6f 75 d5 76 |en.retur|n "You.v|
|00005270| 65 20 73 65 65 6e 20 61 | 6c 6c 20 6f 66 20 74 68 |e seen a|ll of th|
|00005280| 65 20 67 72 61 70 68 69 | 63 73 22 20 26 26 20 64 |e graphi|cs" && d|
|00005290| 69 61 6c 6f 67 50 68 72 | 61 73 65 20 c2 0d 26 26 |ialogPhr|ase ..&&|
|000052a0| 20 71 75 6f 74 65 20 26 | 20 77 68 69 63 68 54 65 | quote &| whichTe|
|000052b0| 78 74 20 26 20 71 75 6f | 74 65 20 26 20 22 2e 22 |xt & quo|te & "."|
|000052c0| 0d 65 6c 73 65 0d 72 65 | 74 75 72 6e 20 22 59 6f |.else.re|turn "Yo|
|000052d0| 75 27 76 65 20 73 65 65 | 6e 20 61 6c 6c 20 6f 66 |u've see|n all of|
|000052e0| 20 74 68 65 20 67 72 61 | 70 68 69 63 73 20 77 69 | the gra|phics wi|
|000052f0| 74 68 20 61 6c 6c 20 6f | 66 20 74 68 65 20 73 65 |th all o|f the se|
|00005300| 6c 65 63 74 65 64 20 69 | 74 65 6d 73 2e 22 0d 65 |lected i|tems.".e|
|00005310| 6e 64 20 69 66 0d 65 6e | 64 20 61 6c 6c 46 6f 75 |nd if.en|d allFou|
|00005320| 6e 64 50 72 65 66 69 78 | 0d 0d 66 75 6e 63 74 69 |ndPrefix|..functi|
|00005330| 6f 6e 20 6e 6f 6e 65 46 | 6f 75 6e 64 50 72 65 66 |on noneF|oundPref|
|00005340| 69 78 20 77 68 69 63 68 | 54 65 78 74 2c 64 69 61 |ix which|Text,dia|
|00005350| 6c 6f 67 50 68 72 61 73 | 65 0d 69 66 20 74 68 65 |logPhras|e.if the|
|00005360| 20 6e 75 6d 62 65 72 20 | 6f 66 20 6c 69 6e 65 73 | number |of lines|
|00005370| 20 69 6e 20 77 68 69 63 | 68 54 65 78 74 20 3d 20 | in whic|hText = |
|00005380| 31 20 74 68 65 6e 0d 72 | 65 74 75 72 6e 20 22 54 |1 then.r|eturn "T|
|00005390| 68 65 72 65 20 61 72 65 | 6e d5 74 20 61 6e 79 20 |here are|n.t any |
|000053a0| 67 72 61 70 68 69 63 73 | 22 20 26 26 20 64 69 61 |graphics|" && dia|
|000053b0| 6c 6f 67 50 68 72 61 73 | 65 20 c2 0d 26 26 20 71 |logPhras|e ..&& q|
|000053c0| 75 6f 74 65 20 26 20 77 | 68 69 63 68 54 65 78 74 |uote & w|hichText|
|000053d0| 20 26 20 71 75 6f 74 65 | 20 26 20 22 2e 22 0d 65 | & quote| & ".".e|
|000053e0| 6c 73 65 0d 72 65 74 75 | 72 6e 20 22 54 68 65 72 |lse.retu|rn "Ther|
|000053f0| 65 20 61 72 65 6e d5 74 | 20 61 6e 79 20 67 72 61 |e aren.t| any gra|
|00005400| 70 68 69 63 73 20 74 68 | 61 74 20 68 61 76 65 20 |phics th|at have |
|00005410| 61 6c 6c 20 6f 66 20 74 | 68 65 20 73 65 6c 65 63 |all of t|he selec|
|00005420| 74 65 64 20 69 74 65 6d | 73 2e 22 0d 65 6e 64 20 |ted item|s.".end |
|00005430| 69 66 0d 65 6e 64 20 6e | 6f 6e 65 46 6f 75 6e 64 |if.end n|oneFound|
|00005440| 50 72 65 66 69 78 0d 0d | 66 75 6e 63 74 69 6f 6e |Prefix..|function|
|00005450| 20 73 68 61 6c 6c 57 65 | 53 74 6f 70 0d 2d 2d 20 | shallWe|Stop.-- |
|00005460| 50 61 75 73 65 20 61 74 | 20 65 61 63 68 20 63 61 |Pause at| each ca|
|00005470| 72 64 20 66 6f 72 20 61 | 20 67 69 76 65 6e 20 61 |rd for a| given a|
|00005480| 6d 6f 75 6e 74 20 6f 66 | 20 74 69 6d 65 2e 0d 67 |mount of| time..g|
|00005490| 6c 6f 62 61 6c 20 74 69 | 63 6b 73 54 6f 57 61 69 |lobal ti|cksToWai|
|000054a0| 74 0d 70 75 74 20 28 74 | 68 65 20 74 69 63 6b 73 |t.put (t|he ticks|
|000054b0| 20 2b 20 74 69 63 6b 73 | 54 6f 57 61 69 74 29 20 | + ticks|ToWait) |
|000054c0| 69 6e 74 6f 20 73 74 6f | 70 54 69 63 6b 73 0d 72 |into sto|pTicks.r|
|000054d0| 65 70 65 61 74 20 75 6e | 74 69 6c 20 73 74 6f 70 |epeat un|til stop|
|000054e0| 54 69 63 6b 73 20 3c 20 | 28 74 68 65 20 74 69 63 |Ticks < |(the tic|
|000054f0| 6b 73 29 0d 69 66 20 74 | 68 65 20 6d 6f 75 73 65 |ks).if t|he mouse|
|00005500| 20 69 73 20 64 6f 77 6e | 20 74 68 65 6e 20 72 65 | is down| then re|
|00005510| 74 75 72 6e 20 74 72 75 | 65 0d 65 6e 64 20 72 65 |turn tru|e.end re|
|00005520| 70 65 61 74 0d 72 65 74 | 75 72 6e 20 66 61 6c 73 |peat.ret|urn fals|
|00005530| 65 0d 65 6e 64 20 73 68 | 61 6c 6c 57 65 53 74 6f |e.end sh|allWeSto|
|00005540| 70 0d 0d 66 75 6e 63 74 | 69 6f 6e 20 61 64 76 61 |p..funct|ion adva|
|00005550| 6e 63 65 49 74 65 6d 20 | 74 68 69 73 49 74 65 6d |nceItem |thisItem|
|00005560| 2c 67 6f 46 6f 72 77 61 | 72 64 2c 76 61 6c 69 64 |,goForwa|rd,valid|
|00005570| 46 69 6c 65 4e 61 6d 65 | 73 0d 70 75 74 20 74 68 |FileName|s.put th|
|00005580| 69 73 49 74 65 6d 20 69 | 6e 74 6f 20 74 65 73 74 |isItem i|nto test|
|00005590| 54 68 69 73 0d 69 66 20 | 67 6f 46 6f 72 77 61 72 |This.if |goForwar|
|000055a0| 64 20 74 68 65 6e 0d 61 | 64 64 20 31 20 74 6f 20 |d then.a|dd 1 to |
|000055b0| 74 68 69 73 49 74 65 6d | 0d 69 66 20 74 68 69 73 |thisItem|.if this|
|000055c0| 49 74 65 6d 20 3e 20 74 | 68 65 20 6e 75 6d 62 65 |Item > t|he numbe|
|000055d0| 72 20 6f 66 20 69 74 65 | 6d 73 20 69 6e 20 76 61 |r of ite|ms in va|
|000055e0| 6c 69 64 46 69 6c 65 4e | 61 6d 65 73 20 74 68 65 |lidFileN|ames the|
|000055f0| 6e 0d 70 75 74 20 31 20 | 69 6e 74 6f 20 74 68 69 |n.put 1 |into thi|
|00005600| 73 49 74 65 6d 0d 65 6e | 64 20 69 66 0d 65 6c 73 |sItem.en|d if.els|
|00005610| 65 0d 73 75 62 74 72 61 | 63 74 20 31 20 66 72 6f |e.subtra|ct 1 fro|
|00005620| 6d 20 74 68 69 73 49 74 | 65 6d 0d 69 66 20 74 68 |m thisIt|em.if th|
|00005630| 69 73 49 74 65 6d 20 3d | 20 30 20 74 68 65 6e 0d |isItem =| 0 then.|
|00005640| 70 75 74 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f |put the |number o|
|00005650| 66 20 69 74 65 6d 73 20 | 69 6e 20 76 61 6c 69 64 |f items |in valid|
|00005660| 46 69 6c 65 4e 61 6d 65 | 73 20 69 6e 74 6f 20 74 |FileName|s into t|
|00005670| 68 69 73 49 74 65 6d 0d | 65 6e 64 20 69 66 0d 65 |hisItem.|end if.e|
|00005680| 6e 64 20 69 66 0d 72 65 | 74 75 72 6e 20 74 68 69 |nd if.re|turn thi|
|00005690| 73 49 74 65 6d 0d 65 6e | 64 20 61 64 76 61 6e 63 |sItem.en|d advanc|
|000056a0| 65 49 74 65 6d 0d 0d 66 | 75 6e 63 74 69 6f 6e 20 |eItem..f|unction |
|000056b0| 67 65 74 43 61 72 64 49 | 64 49 6e 74 65 72 73 65 |getCardI|dInterse|
|000056c0| 63 74 69 6f 6e 20 73 6f | 75 72 63 65 2c 70 6f 69 |ction so|urce,poi|
|000056d0| 6e 74 65 72 46 69 65 6c | 64 2c 77 72 69 74 65 46 |nterFiel|d,writeF|
|000056e0| 69 65 6c 64 0d 2d 2d 20 | 52 65 74 75 72 6e 20 74 |ield.-- |Return t|
|000056f0| 68 65 20 63 61 72 64 20 | 69 64 73 20 6f 66 20 61 |he card |ids of a|
|00005700| 6c 6c 20 63 61 72 64 73 | 20 74 68 61 74 20 6d 65 |ll cards| that me|
|00005710| 65 74 20 74 68 65 20 63 | 72 69 74 65 72 69 61 2e |et the c|riteria.|
|00005720| 0d 2d 2d 20 53 6f 75 72 | 63 65 20 69 73 20 61 20 |.-- Sour|ce is a |
|00005730| 72 65 74 75 72 6e 2d 64 | 65 6c 69 6d 69 74 65 64 |return-d|elimited|
|00005740| 20 6c 69 73 74 20 74 68 | 61 74 20 64 65 74 65 72 | list th|at deter|
|00005750| 6d 69 6e 65 73 20 74 68 | 65 20 63 72 69 74 65 72 |mines th|e criter|
|00005760| 69 61 2e 0d 70 75 74 20 | 67 65 74 4c 65 61 73 74 |ia..put |getLeast|
|00005770| 49 74 65 6d 73 28 73 6f | 75 72 63 65 2c 70 6f 69 |Items(so|urce,poi|
|00005780| 6e 74 65 72 46 69 65 6c | 64 2c 77 72 69 74 65 46 |nterFiel|d,writeF|
|00005790| 69 65 6c 64 29 20 69 6e | 74 6f 20 77 68 69 63 68 |ield) in|to which|
|000057a0| 4c 69 6e 65 0d 69 66 20 | 77 68 69 63 68 4c 69 6e |Line.if |whichLin|
|000057b0| 65 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 20 |e is emp|ty then |
|000057c0| 72 65 74 75 72 6e 20 77 | 68 69 63 68 4c 69 6e 65 |return w|hichLine|
|000057d0| 0d 70 75 74 20 6c 69 6e | 65 20 77 68 69 63 68 4c |.put lin|e whichL|
|000057e0| 69 6e 65 20 6f 66 20 73 | 6f 75 72 63 65 20 69 6e |ine of s|ource in|
|000057f0| 74 6f 20 6f 63 63 75 72 | 73 4c 65 61 73 74 0d 2d |to occur|sLeast.-|
|00005800| 2d 20 6f 63 63 75 72 73 | 4c 65 61 73 74 20 69 73 |- occurs|Least is|
|00005810| 20 74 68 65 20 74 65 78 | 74 20 74 68 61 74 20 6f | the tex|t that o|
|00005820| 63 63 75 72 73 20 74 68 | 65 20 6c 65 61 73 74 20 |ccurs th|e least |
|00005830| 74 69 6d 65 73 20 69 6e | 20 74 68 65 20 73 74 61 |times in| the sta|
|00005840| 63 6b 2e 0d 70 75 74 20 | 67 65 74 46 69 6c 65 4e |ck..put |getFileN|
|00005850| 61 6d 65 73 28 6f 63 63 | 75 72 73 4c 65 61 73 74 |ames(occ|ursLeast|
|00005860| 2c 73 6f 75 72 63 65 2c | 77 72 69 74 65 46 69 65 |,source,|writeFie|
|00005870| 6c 64 2c 70 6f 69 6e 74 | 65 72 46 69 65 6c 64 29 |ld,point|erField)|
|00005880| 20 c2 0d 69 6e 74 6f 20 | 63 61 72 64 49 64 73 0d | ..into |cardIds.|
|00005890| 72 65 74 75 72 6e 20 63 | 61 72 64 49 64 73 0d 65 |return c|ardIds.e|
|000058a0| 6e 64 20 67 65 74 43 61 | 72 64 49 64 49 6e 74 65 |nd getCa|rdIdInte|
|000058b0| 72 73 65 63 74 69 6f 6e | 0d 0d 66 75 6e 63 74 69 |rsection|..functi|
|000058c0| 6f 6e 20 67 65 74 4c 65 | 61 73 74 49 74 65 6d 73 |on getLe|astItems|
|000058d0| 20 6f 62 6a 65 63 74 2c | 70 6f 69 6e 74 65 72 46 | object,|pointerF|
|000058e0| 69 65 6c 64 2c 77 72 69 | 74 65 46 69 65 6c 64 0d |ield,wri|teField.|
|000058f0| 2d 2d 20 52 65 74 75 72 | 6e 20 74 68 65 20 6c 69 |-- Retur|n the li|
|00005900| 6e 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 74 68 65 |ne numbe|r of the|
|00005910| 20 6f 62 6a 65 63 74 20 | 74 68 61 74 20 68 61 73 | object |that has|
|00005920| 20 74 68 65 20 66 65 77 | 65 73 74 0d 2d 2d 20 6f | the few|est.-- o|
|00005930| 63 63 75 72 72 65 6e 63 | 65 73 20 69 6e 20 74 68 |ccurrenc|es in th|
|00005940| 65 20 73 74 61 63 6b 2e | 0d 2d 2d 20 4f 62 6a 65 |e stack.|.-- Obje|
|00005950| 63 74 20 69 73 20 61 20 | 72 65 74 75 72 6e 2d 64 |ct is a |return-d|
|00005960| 65 6c 69 6d 69 74 65 64 | 20 6c 69 73 74 20 6f 66 |elimited| list of|
|00005970| 20 74 65 72 6d 73 20 28 | 73 75 63 68 20 61 73 20 | terms (|such as |
|00005980| 6b 65 79 77 6f 72 64 73 | 2c 20 65 74 63 2e 29 0d |keywords|, etc.).|
|00005990| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 6c |put empt|y into l|
|000059a0| 6f 77 65 73 74 0d 70 75 | 74 20 65 6d 70 74 79 20 |owest.pu|t empty |
|000059b0| 69 6e 74 6f 20 6c 65 61 | 73 74 49 74 65 6d 73 0d |into lea|stItems.|
|000059c0| 72 65 70 65 61 74 20 77 | 69 74 68 20 4e 20 3d 20 |repeat w|ith N = |
|000059d0| 31 20 74 6f 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |1 to the| number |
|000059e0| 6f 66 20 6c 69 6e 65 73 | 20 69 6e 20 6f 62 6a 65 |of lines| in obje|
|000059f0| 63 74 0d 73 65 74 20 63 | 75 72 73 6f 72 20 74 6f |ct.set c|ursor to|
|00005a00| 20 62 75 73 79 0d 70 75 | 74 20 6c 69 6e 65 20 4e | busy.pu|t line N|
|00005a10| 20 6f 66 20 6f 62 6a 65 | 63 74 20 69 6e 74 6f 20 | of obje|ct into |
|00005a20| 77 68 69 63 68 54 65 78 | 74 0d 67 65 74 20 6e 75 |whichTex|t.get nu|
|00005a30| 6d 62 65 72 4f 66 4f 63 | 63 75 72 72 65 6e 63 65 |mberOfOc|currence|
|00005a40| 73 28 77 68 69 63 68 54 | 65 78 74 2c 70 6f 69 6e |s(whichT|ext,poin|
|00005a50| 74 65 72 46 69 65 6c 64 | 2c 77 72 69 74 65 46 69 |terField|,writeFi|
|00005a60| 65 6c 64 29 0d 69 66 20 | 6c 6f 77 65 73 74 20 3d |eld).if |lowest =|
|00005a70| 20 65 6d 70 74 79 20 4f | 52 20 69 74 20 3c 20 6c | empty O|R it < l|
|00005a80| 6f 77 65 73 74 20 74 68 | 65 6e 0d 70 75 74 20 69 |owest th|en.put i|
|00005a90| 74 20 69 6e 74 6f 20 6c | 6f 77 65 73 74 0d 70 75 |t into l|owest.pu|
|00005aa0| 74 20 4e 20 69 6e 74 6f | 20 6c 65 61 73 74 49 74 |t N into| leastIt|
|00005ab0| 65 6d 73 0d 65 6e 64 20 | 69 66 0d 65 6e 64 20 72 |ems.end |if.end r|
|00005ac0| 65 70 65 61 74 0d 72 65 | 74 75 72 6e 20 6c 65 61 |epeat.re|turn lea|
|00005ad0| 73 74 49 74 65 6d 73 0d | 65 6e 64 20 67 65 74 4c |stItems.|end getL|
|00005ae0| 65 61 73 74 49 74 65 6d | 73 0d 0d 66 75 6e 63 74 |eastItem|s..funct|
|00005af0| 69 6f 6e 20 67 65 74 46 | 69 6c 65 4e 61 6d 65 73 |ion getF|ileNames|
|00005b00| 20 77 68 69 63 68 54 65 | 78 74 2c 73 6f 75 72 63 | whichTe|xt,sourc|
|00005b10| 65 2c 77 72 69 74 65 46 | 69 65 6c 64 2c 70 6f 69 |e,writeF|ield,poi|
|00005b20| 6e 74 65 72 46 69 65 6c | 64 0d 2d 2d 20 47 69 76 |nterFiel|d.-- Giv|
|00005b30| 65 6e 20 61 20 74 65 78 | 74 20 73 74 72 69 6e 67 |en a tex|t string|
|00005b40| 2c 20 69 74 73 20 69 6e | 64 65 78 2c 20 61 6e 64 |, its in|dex, and|
|00005b50| 20 70 6f 69 6e 74 65 72 | 20 66 69 65 6c 64 20 74 | pointer| field t|
|00005b60| 68 61 74 0d 2d 2d 20 68 | 61 73 20 74 68 65 20 6c |hat.-- h|as the l|
|00005b70| 65 61 73 74 20 6f 63 63 | 75 72 72 65 6e 63 65 73 |east occ|urrences|
|00005b80| 20 69 6e 20 74 68 65 20 | 73 74 61 63 6b 2c 20 72 | in the |stack, r|
|00005b90| 65 74 75 72 6e 20 61 20 | 66 6f 72 6d 61 74 74 65 |eturn a |formatte|
|00005ba0| 64 20 6c 69 73 74 20 6f | 66 0d 2d 2d 20 64 65 73 |d list o|f.-- des|
|00005bb0| 63 72 69 70 74 69 6f 6e | 73 20 61 6e 64 20 66 69 |cription|s and fi|
|00005bc0| 6c 65 20 6e 61 6d 65 73 | 20 74 68 61 74 20 6d 65 |le names| that me|
|00005bd0| 65 74 20 74 68 65 20 63 | 72 69 74 65 72 69 61 2e |et the c|riteria.|
|00005be0| 0d 70 75 74 20 67 65 74 | 56 61 6c 69 64 46 69 6c |.put get|ValidFil|
|00005bf0| 65 4e 61 6d 65 73 28 77 | 68 69 63 68 54 65 78 74 |eNames(w|hichText|
|00005c00| 2c 70 6f 69 6e 74 65 72 | 46 69 65 6c 64 2c 77 72 |,pointer|Field,wr|
|00005c10| 69 74 65 46 69 65 6c 64 | 29 20 69 6e 74 6f 20 73 |iteField|) into s|
|00005c20| 75 62 73 65 74 0d 72 65 | 70 65 61 74 20 77 69 74 |ubset.re|peat wit|
|00005c30| 68 20 4e 20 3d 20 31 20 | 74 6f 20 74 68 65 20 6e |h N = 1 |to the n|
|00005c40| 75 6d 62 65 72 20 6f 66 | 20 6c 69 6e 65 73 20 69 |umber of| lines i|
|00005c50| 6e 20 73 6f 75 72 63 65 | 0d 73 65 74 20 63 75 72 |n source|.set cur|
|00005c60| 73 6f 72 20 74 6f 20 62 | 75 73 79 0d 70 75 74 20 |sor to b|usy.put |
|00005c70| 6c 69 6e 65 20 4e 20 6f | 66 20 73 6f 75 72 63 65 |line N o|f source|
|00005c80| 20 69 6e 74 6f 20 77 68 | 69 63 68 54 65 78 74 0d | into wh|ichText.|
|00005c90| 70 75 74 20 67 65 74 56 | 61 6c 69 64 46 69 6c 65 |put getV|alidFile|
|00005ca0| 4e 61 6d 65 73 28 77 68 | 69 63 68 54 65 78 74 2c |Names(wh|ichText,|
|00005cb0| 70 6f 69 6e 74 65 72 46 | 69 65 6c 64 2c 77 72 69 |pointerF|ield,wri|
|00005cc0| 74 65 46 69 65 6c 64 29 | 20 c2 0d 69 6e 74 6f 20 |teField)| ..into |
|00005cd0| 73 75 70 65 72 53 65 74 | 0d 70 75 74 20 67 65 74 |superSet|.put get|
|00005ce0| 49 6e 74 65 72 73 65 63 | 74 69 6f 6e 28 73 75 62 |Intersec|tion(sub|
|00005cf0| 73 65 74 2c 73 75 70 65 | 72 53 65 74 29 20 69 6e |set,supe|rSet) in|
|00005d00| 74 6f 20 69 6e 74 65 72 | 73 65 63 74 69 6f 6e 0d |to inter|section.|
|00005d10| 69 66 20 69 6e 74 65 72 | 73 65 63 74 69 6f 6e 20 |if inter|section |
|00005d20| 69 73 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 70 75 |is empty| then.pu|
|00005d30| 74 20 65 6d 70 74 79 20 | 69 6e 74 6f 20 73 75 62 |t empty |into sub|
|00005d40| 73 65 74 0d 65 78 69 74 | 20 72 65 70 65 61 74 0d |set.exit| repeat.|
|00005d50| 65 6c 73 65 20 70 75 74 | 20 69 6e 74 65 72 73 65 |else put| interse|
|00005d60| 63 74 69 6f 6e 20 69 6e | 74 6f 20 73 75 62 73 65 |ction in|to subse|
|00005d70| 74 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 72 65 74 |t.end re|peat.ret|
|00005d80| 75 72 6e 20 73 75 62 73 | 65 74 0d 65 6e 64 20 67 |urn subs|et.end g|
|00005d90| 65 74 46 69 6c 65 4e 61 | 6d 65 73 0d 0d 66 75 6e |etFileNa|mes..fun|
|00005da0| 63 74 69 6f 6e 20 67 65 | 74 43 61 72 64 49 64 20 |ction ge|tCardId |
|00005db0| 66 69 6c 65 4e 61 6d 65 | 0d 2d 2d 20 47 69 76 65 |fileName|.-- Give|
|00005dc0| 6e 20 61 20 66 69 6c 65 | 20 6e 61 6d 65 2c 20 72 |n a file| name, r|
|00005dd0| 65 74 75 72 6e 20 69 74 | 73 20 63 61 72 64 20 69 |eturn it|s card i|
|00005de0| 64 2e 0d 70 75 74 20 63 | 64 20 66 6c 64 20 22 66 |d..put c|d fld "f|
|00005df0| 69 6c 65 20 6e 61 6d 65 | 20 69 6e 64 65 78 22 20 |ile name| index" |
|00005e00| 6f 66 20 63 64 20 22 49 | 6e 64 65 78 20 73 74 6f |of cd "I|ndex sto|
|00005e10| 72 61 67 65 22 20 69 6e | 74 6f 20 74 68 65 49 6e |rage" in|to theIn|
|00005e20| 64 65 78 0d 70 75 74 20 | 67 65 74 46 69 6c 65 4e |dex.put |getFileN|
|00005e30| 61 6d 65 4c 69 6e 65 28 | 66 69 6c 65 4e 61 6d 65 |ameLine(|fileName|
|00005e40| 2c 74 68 65 49 6e 64 65 | 78 29 20 69 6e 74 6f 20 |,theInde|x) into |
|00005e50| 77 68 69 63 68 4c 69 6e | 65 0d 69 66 20 77 68 69 |whichLin|e.if whi|
|00005e60| 63 68 4c 69 6e 65 20 69 | 73 20 65 6d 70 74 79 20 |chLine i|s empty |
|00005e70| 74 68 65 6e 0d 64 69 61 | 6c 6f 67 49 74 20 22 54 |then.dia|logIt "T|
|00005e80| 68 65 20 66 69 6c 65 20 | 6e 61 6d 65 22 20 26 26 |he file |name" &&|
|00005e90| 20 66 69 6c 65 4e 61 6d | 65 20 26 26 20 22 20 69 | fileNam|e && " i|
|00005ea0| 73 20 6e 6f 74 20 70 61 | 72 74 20 6f 66 20 74 68 |s not pa|rt of th|
|00005eb0| 65 22 20 c2 0d 26 26 20 | 22 46 69 6c 65 20 4e 61 |e" ..&& |"File Na|
|00005ec0| 6d 65 20 49 6e 64 65 78 | 2e 20 59 6f 75 20 70 72 |me Index|. You pr|
|00005ed0| 6f 62 61 62 6c 79 20 6e | 65 65 64 20 74 6f 20 62 |obably n|eed to b|
|00005ee0| 75 69 6c 64 20 74 68 65 | 20 46 69 6c 65 20 4e 61 |uild the| File Na|
|00005ef0| 6d 65 20 49 6e 64 65 78 | 2e 22 0d 72 65 74 75 72 |me Index|.".retur|
|00005f00| 6e 20 65 6d 70 74 79 0d | 65 6e 64 20 69 66 0d 72 |n empty.|end if.r|
|00005f10| 65 74 75 72 6e 20 69 74 | 65 6d 20 32 20 6f 66 20 |eturn it|em 2 of |
|00005f20| 6c 69 6e 65 20 77 68 69 | 63 68 4c 69 6e 65 20 6f |line whi|chLine o|
|00005f30| 66 20 74 68 65 49 6e 64 | 65 78 0d 65 6e 64 20 67 |f theInd|ex.end g|
|00005f40| 65 74 43 61 72 64 49 64 | 0d 0d 66 75 6e 63 74 69 |etCardId|..functi|
|00005f50| 6f 6e 20 69 74 65 6d 4e | 75 6d 62 65 72 20 74 65 |on itemN|umber te|
|00005f60| 78 74 53 74 72 69 6e 67 | 2c 74 68 65 43 6f 6e 74 |xtString|,theCont|
|00005f70| 61 69 6e 65 72 0d 2d 2d | 20 52 65 74 75 72 6e 20 |ainer.--| Return |
|00005f80| 74 68 65 20 69 74 65 6d | 20 6e 75 6d 62 65 72 20 |the item| number |
|00005f90| 6f 66 20 74 68 65 20 74 | 65 78 74 20 73 74 72 69 |of the t|ext stri|
|00005fa0| 6e 67 20 69 6e 20 74 68 | 65 20 67 69 76 65 6e 20 |ng in th|e given |
|00005fb0| 63 6f 6e 74 61 69 6e 65 | 72 0d 69 66 20 69 74 65 |containe|r.if ite|
|00005fc0| 6d 20 31 20 6f 66 20 74 | 68 65 43 6f 6e 74 61 69 |m 1 of t|heContai|
|00005fd0| 6e 65 72 20 3d 20 74 65 | 78 74 53 74 72 69 6e 67 |ner = te|xtString|
|00005fe0| 20 74 68 65 6e 20 72 65 | 74 75 72 6e 20 31 0d 65 | then re|turn 1.e|
|00005ff0| 6c 73 65 20 67 65 74 20 | 6f 66 66 73 65 74 28 22 |lse get |offset("|
|00006000| 2c 22 20 26 20 74 65 78 | 74 53 74 72 69 6e 67 20 |," & tex|tString |
|00006010| 26 20 22 2c 22 2c 74 68 | 65 43 6f 6e 74 61 69 6e |& ",",th|eContain|
|00006020| 65 72 29 0d 69 66 20 69 | 74 20 3c 3e 20 30 20 74 |er).if i|t <> 0 t|
|00006030| 68 65 6e 0d 67 65 74 20 | 74 68 65 20 6e 75 6d 62 |hen.get |the numb|
|00006040| 65 72 20 6f 66 20 69 74 | 65 6d 73 20 69 6e 20 63 |er of it|ems in c|
|00006050| 68 61 72 20 31 20 74 6f | 20 69 74 20 6f 66 20 74 |har 1 to| it of t|
|00006060| 68 65 43 6f 6e 74 61 69 | 6e 65 72 0d 72 65 74 75 |heContai|ner.retu|
|00006070| 72 6e 20 69 74 2b 31 0d | 65 6e 64 20 69 66 0d 69 |rn it+1.|end if.i|
|00006080| 66 20 74 65 78 74 53 74 | 72 69 6e 67 20 3d 20 6c |f textSt|ring = l|
|00006090| 61 73 74 20 69 74 65 6d | 20 6f 66 20 74 68 65 43 |ast item| of theC|
|000060a0| 6f 6e 74 61 69 6e 65 72 | 20 74 68 65 6e 0d 72 65 |ontainer| then.re|
|000060b0| 74 75 72 6e 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |turn the| number |
|000060c0| 6f 66 20 69 74 65 6d 73 | 20 69 6e 20 74 68 65 43 |of items| in theC|
|000060d0| 6f 6e 74 61 69 6e 65 72 | 0d 65 6e 64 20 69 66 0d |ontainer|.end if.|
|000060e0| 72 65 74 75 72 6e 20 30 | 0d 65 6e 64 20 69 74 65 |return 0|.end ite|
|000060f0| 6d 4e 75 6d 62 65 72 0d | 0d 66 75 6e 63 74 69 6f |mNumber.|.functio|
|00006100| 6e 20 62 69 6e 61 72 79 | 49 6e 73 65 72 74 20 74 |n binary|Insert t|
|00006110| 68 65 49 74 65 6d 2c 74 | 68 65 43 6f 6e 74 61 69 |heItem,t|heContai|
|00006120| 6e 65 72 0d 73 65 74 20 | 63 75 72 73 6f 72 20 74 |ner.set |cursor t|
|00006130| 6f 20 77 61 74 63 68 0d | 2d 2d 20 61 20 66 65 77 |o watch.|-- a few|
|00006140| 20 71 75 69 63 6b 20 74 | 65 73 74 73 20 75 70 20 | quick t|ests up |
|00006150| 66 72 6f 6e 74 0d 69 66 | 20 74 68 65 43 6f 6e 74 |front.if| theCont|
|00006160| 61 69 6e 65 72 20 69 73 | 20 65 6d 70 74 79 20 74 |ainer is| empty t|
|00006170| 68 65 6e 20 72 65 74 75 | 72 6e 20 30 0d 2d 2d 20 |hen retu|rn 0.-- |
|00006180| 69 66 20 74 68 65 49 74 | 65 6d 20 69 73 20 6f 75 |if theIt|em is ou|
|00006190| 74 73 69 64 65 20 74 68 | 65 20 62 6f 75 6e 64 73 |tside th|e bounds|
|000061a0| 20 6f 66 20 74 68 65 20 | 63 6f 6e 74 61 69 6e 65 | of the |containe|
|000061b0| 72 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 31 0d |r then r|eturn 1.|
|000061c0| 69 66 20 74 68 65 49 74 | 65 6d 20 3e 20 6c 61 73 |if theIt|em > las|
|000061d0| 74 20 69 74 65 6d 20 6f | 66 20 74 68 65 43 6f 6e |t item o|f theCon|
|000061e0| 74 61 69 6e 65 72 20 4f | 52 20 c2 0d 74 68 65 49 |tainer O|R ..theI|
|000061f0| 74 65 6d 20 3c 20 69 74 | 65 6d 20 31 20 6f 66 20 |tem < it|em 1 of |
|00006200| 74 68 65 43 6f 6e 74 61 | 69 6e 65 72 20 74 68 65 |theConta|iner the|
|00006210| 6e 20 72 65 74 75 72 6e | 20 31 0d 2d 2d 20 69 66 |n return| 1.-- if|
|00006220| 20 74 68 65 49 74 65 6d | 20 65 78 69 73 74 73 20 | theItem| exists |
|00006230| 69 6e 20 74 68 65 20 63 | 6f 6e 74 61 69 6e 65 72 |in the c|ontainer|
|00006240| 2c 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 69 74 |, then r|eturn it|
|00006250| 73 20 69 74 65 6d 20 6e | 75 6d 62 65 72 0d 69 66 |s item n|umber.if|
|00006260| 20 69 73 57 69 74 68 69 | 6e 49 74 65 6d 73 28 74 | isWithi|nItems(t|
|00006270| 68 65 49 74 65 6d 2c 74 | 68 65 43 6f 6e 74 61 69 |heItem,t|heContai|
|00006280| 6e 65 72 29 20 74 68 65 | 6e 0d 67 65 74 20 69 74 |ner) the|n.get it|
|00006290| 65 6d 4e 75 6d 62 65 72 | 28 74 68 65 49 74 65 6d |emNumber|(theItem|
|000062a0| 2c 74 68 65 43 6f 6e 74 | 61 69 6e 65 72 29 0d 72 |,theCont|ainer).r|
|000062b0| 65 74 75 72 6e 20 69 74 | 0d 65 6e 64 20 69 66 0d |eturn it|.end if.|
|000062c0| 2d 2d 20 62 65 67 69 6e | 20 62 69 6e 61 72 79 20 |-- begin| binary |
|000062d0| 69 6e 73 65 72 74 0d 70 | 75 74 20 74 68 65 20 6e |insert.p|ut the n|
|000062e0| 75 6d 62 65 72 20 6f 66 | 20 69 74 65 6d 73 20 6f |umber of| items o|
|000062f0| 66 20 74 68 65 43 6f 6e | 74 61 69 6e 65 72 20 69 |f theCon|tainer i|
|00006300| 6e 74 6f 20 4e 0d 70 75 | 74 20 31 20 69 6e 74 6f |nto N.pu|t 1 into|
|00006310| 20 53 0d 72 65 70 65 61 | 74 0d 70 75 74 20 28 4e | S.repea|t.put (N|
|00006320| 2d 53 29 20 64 69 76 20 | 32 20 69 6e 74 6f 20 6d |-S) div |2 into m|
|00006330| 65 64 69 61 6e 0d 70 75 | 74 20 28 53 20 2b 20 6d |edian.pu|t (S + m|
|00006340| 65 64 69 61 6e 29 20 69 | 6e 74 6f 20 6b 65 79 4e |edian) i|nto keyN|
|00006350| 0d 69 66 20 74 68 65 49 | 74 65 6d 20 3c 20 69 74 |.if theI|tem < it|
|00006360| 65 6d 20 6b 65 79 4e 20 | 6f 66 20 74 68 65 43 6f |em keyN |of theCo|
|00006370| 6e 74 61 69 6e 65 72 20 | 74 68 65 6e 0d 69 66 20 |ntainer |then.if |
|00006380| 6d 65 64 69 61 6e 20 3d | 20 30 20 74 68 65 6e 0d |median =| 0 then.|
|00006390| 70 75 74 20 74 68 65 49 | 74 65 6d 20 26 20 72 65 |put theI|tem & re|
|000063a0| 74 75 72 6e 20 62 65 66 | 6f 72 65 20 69 74 65 6d |turn bef|ore item|
|000063b0| 20 6b 65 79 4e 20 6f 66 | 20 74 68 65 43 6f 6e 74 | keyN of| theCont|
|000063c0| 61 69 6e 65 72 0d 65 78 | 69 74 20 72 65 70 65 61 |ainer.ex|it repea|
|000063d0| 74 0d 65 6c 73 65 0d 70 | 75 74 20 6b 65 79 4e 20 |t.else.p|ut keyN |
|000063e0| 69 6e 74 6f 20 4e 0d 6e | 65 78 74 20 72 65 70 65 |into N.n|ext repe|
|000063f0| 61 74 0d 65 6e 64 20 69 | 66 0d 65 6c 73 65 0d 69 |at.end i|f.else.i|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.