home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / BASIC / BASDLX16.ZIP / BASDLX.EPS < prev    next >
Unknown  |  1987-09-08  |  54.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Encapsulated PostScript (image/eps) ext Supported
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 1b 4f 1b 21 00 1b 70 00 | 1b 21 00 1b 41 0c 0d 0a |.O.!..p.|.!..A...|
|00000010| 0d 0a 0d 0a 0d 0a 0d 0a | 0d 0a 20 20 20 20 20 20 |........|.. |
|00000020| 20 20 20 20 20 20 20 42 | 41 53 44 4c 58 20 28 43 | B|ASDLX (C|
|00000030| 29 20 43 6f 70 79 72 69 | 67 68 74 20 31 39 38 36 |) Copyri|ght 1986|
|00000040| 2c 31 39 38 37 20 42 79 | 20 47 75 73 74 61 76 6f |,1987 By| Gustavo|
|00000050| 20 48 2e 20 56 65 72 64 | 75 6e 20 20 50 61 67 65 | H. Verd|un Page|
|00000060| 20 31 0d 0a 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 | 1......| |
|00000070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 42 41 53 | | BAS|
|00000090| 44 4c 58 2e 4c 49 42 0d | 0a 0d 0a 20 20 20 20 20 |DLX.LIB.|... |
|000000a0| 20 20 20 20 20 20 20 44 | 65 6c 75 78 65 20 4c 69 | D|eluxe Li|
|000000b0| 62 72 61 72 79 20 6f 66 | 20 66 75 6e 63 74 69 6f |brary of| functio|
|000000c0| 6e 73 20 77 72 69 74 74 | 65 6e 20 69 6e 20 41 53 |ns writt|en in AS|
|000000d0| 53 45 4d 42 4c 59 20 6c | 61 6e 67 75 61 67 65 20 |SEMBLY l|anguage |
|000000e0| 66 6f 72 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |for.. | |
|000000f0| 20 20 20 20 20 20 20 74 | 68 65 20 4d 69 63 72 6f | t|he Micro|
|00000100| 73 6f 66 74 20 51 75 69 | 63 6b 42 41 53 49 43 20 |soft Qui|ckBASIC |
|00000110| 61 6e 64 20 49 42 4d 20 | 42 41 53 49 43 20 63 6f |and IBM |BASIC co|
|00000120| 6d 70 69 6c 65 72 73 0d | 0a 0d 0a 20 20 20 20 20 |mpilers.|... |
|00000130| 20 20 20 20 20 42 61 73 | 69 63 20 44 65 6c 75 78 | Bas|ic Delux|
|00000140| 65 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 54 |e.... | T|
|00000150| 6f 20 75 73 65 20 20 42 | 41 53 44 4c 58 20 79 6f |o use B|ASDLX yo|
|00000160| 75 20 77 69 6c 6c 20 6e | 65 65 64 2c 20 20 65 69 |u will n|eed, ei|
|00000170| 74 68 65 72 20 74 68 65 | 20 49 42 4d 20 42 61 73 |ther the| IBM Bas|
|00000180| 69 63 20 20 63 6f 6d 70 | 69 6c 65 72 20 20 6f 72 |ic comp|iler or|
|00000190| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 74 68 65 20 |.. | the |
|000001a0| 20 4d 69 63 72 6f 73 6f | 66 74 20 51 75 69 63 6b | Microso|ft Quick|
|000001b0| 42 41 53 49 43 20 63 6f | 6d 70 69 6c 65 72 2c 20 |BASIC co|mpiler, |
|000001c0| 20 50 43 2d 44 4f 53 2f | 4d 53 2d 44 4f 53 20 76 | PC-DOS/|MS-DOS v|
|000001d0| 65 72 73 69 6f 6e 20 32 | 2e 30 20 6f 72 0d 0a 20 |ersion 2|.0 or.. |
|000001e0| 20 20 20 20 20 20 20 20 | 20 6c 61 74 65 72 20 69 | | later i|
|000001f0| 73 20 72 65 71 75 69 72 | 65 64 20 66 6f 72 20 64 |s requir|ed for d|
|00000200| 72 69 76 65 20 66 75 6e | 63 74 69 6f 6e 73 20 74 |rive fun|ctions t|
|00000210| 6f 20 20 77 6f 72 6b 2e | 20 20 54 68 65 73 65 20 |o work.| These |
|00000220| 20 66 75 6e 63 74 69 6f | 6e 73 0d 0a 20 20 20 20 | functio|ns.. |
|00000230| 20 20 20 20 20 20 68 61 | 76 65 20 20 62 65 65 6e | ha|ve been|
|00000240| 20 20 74 65 73 74 65 64 | 20 20 77 69 74 68 20 20 | tested| with |
|00000250| 74 68 65 20 20 49 42 4d | 20 42 61 73 69 63 20 63 |the IBM| Basic c|
|00000260| 6f 6d 70 69 6c 65 72 20 | 76 65 72 73 69 6f 6e 20 |ompiler |version |
|00000270| 32 2e 30 20 61 6e 64 0d | 0a 20 20 20 20 20 20 20 |2.0 and.|. |
|00000280| 20 20 20 51 75 69 63 6b | 42 41 53 49 43 20 76 65 | Quick|BASIC ve|
|00000290| 72 73 69 6f 6e 20 32 2e | 30 31 20 61 6e 64 20 68 |rsion 2.|01 and h|
|000002a0| 61 76 65 20 63 61 75 73 | 65 64 20 6e 6f 20 70 72 |ave caus|ed no pr|
|000002b0| 6f 62 6c 65 6d 73 2e 20 | 20 48 6f 77 65 76 65 72 |oblems. | However|
|000002c0| 2c 20 20 49 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |, I.. | |
|000002d0| 61 6d 20 6e 6f 74 20 72 | 65 73 70 6f 6e 73 69 62 |am not r|esponsib|
|000002e0| 6c 65 20 66 6f 72 20 61 | 6e 79 20 64 61 6d 61 67 |le for a|ny damag|
|000002f0| 65 73 20 63 61 75 73 65 | 64 20 62 79 20 62 75 74 |es cause|d by but|
|00000300| 2c 20 6e 6f 74 20 6c 69 | 6d 69 74 65 64 20 74 6f |, not li|mited to|
|00000310| 2c 0d 0a 20 20 20 20 20 | 20 20 20 20 20 74 68 65 |,.. | the|
|00000320| 20 20 75 73 65 2c 20 20 | 6d 69 73 75 73 65 2c 20 | use, |misuse, |
|00000330| 20 20 20 6e 6f 6e 2d 75 | 73 65 20 6f 72 20 69 6e | non-u|se or in|
|00000340| 61 62 69 6c 69 74 79 20 | 74 6f 20 75 73 65 20 42 |ability |to use B|
|00000350| 41 53 44 4c 58 2e 20 20 | 20 54 68 65 73 65 0d 0a |ASDLX. | These..|
|00000360| 20 20 20 20 20 20 20 20 | 20 20 66 75 6e 63 74 69 | | functi|
|00000370| 6f 6e 20 61 72 65 20 69 | 6e 74 65 6e 64 65 64 20 |on are i|ntended |
|00000380| 74 6f 20 62 65 20 75 73 | 65 64 20 69 6e 20 63 6f |to be us|ed in co|
|00000390| 6d 70 69 6c 65 64 20 62 | 61 73 69 63 20 6f 6e 6c |mpiled b|asic onl|
|000003a0| 79 2e 20 20 44 6f 20 20 | 6e 6f 74 0d 0a 20 20 20 |y. Do |not.. |
|000003b0| 20 20 20 20 20 20 20 63 | 6f 6e 66 75 73 65 20 20 | c|onfuse |
|000003c0| 63 6f 6d 70 69 6c 65 64 | 20 42 41 53 49 43 20 77 |compiled| BASIC w|
|000003d0| 69 74 68 20 74 68 65 20 | 42 41 53 49 43 20 69 6e |ith the |BASIC in|
|000003e0| 74 65 72 70 72 65 74 65 | 72 2c 20 20 42 41 53 49 |terprete|r, BASI|
|000003f0| 43 2e 43 4f 4d 20 6f 72 | 0d 0a 20 20 20 20 20 20 |C.COM or|.. |
|00000400| 20 20 20 20 42 41 53 49 | 43 41 2e 43 4f 4d 20 74 | BASI|CA.COM t|
|00000410| 68 61 74 20 63 6f 6d 65 | 73 20 77 69 74 68 20 44 |hat come|s with D|
|00000420| 4f 53 20 6f 72 20 47 57 | 42 41 53 49 43 2e 20 54 |OS or GW|BASIC. T|
|00000430| 68 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 70 72 6f |he funct|ions pro|
|00000440| 76 69 64 65 64 0d 0a 20 | 20 20 20 20 20 20 20 20 |vided.. | |
|00000450| 20 69 6e 20 74 68 69 73 | 20 6c 69 62 72 61 72 79 | in this| library|
|00000460| 20 68 61 76 65 20 62 65 | 65 6e 20 64 65 73 69 67 | have be|en desig|
|00000470| 6e 65 64 20 74 6f 20 72 | 75 6e 20 66 61 73 74 65 |ned to r|un faste|
|00000480| 72 20 20 74 68 61 6e 20 | 20 61 6e 79 20 20 63 6f |r than | any co|
|00000490| 72 2d 0d 0a 20 20 20 20 | 20 20 20 20 20 20 72 65 |r-.. | re|
|000004a0| 73 70 6f 6e 64 65 6e 74 | 20 42 41 53 49 43 20 63 |spondent| BASIC c|
|000004b0| 6f 64 65 2c 20 20 61 6e | 64 20 6f 66 74 65 6e 20 |ode, an|d often |
|000004c0| 74 61 6b 65 20 75 70 20 | 6c 65 73 73 20 73 70 61 |take up |less spa|
|000004d0| 63 65 2c 20 6c 65 61 76 | 69 6e 67 20 79 6f 75 0d |ce, leav|ing you.|
|000004e0| 0a 20 20 20 20 20 20 20 | 20 20 20 77 69 74 68 20 |. | with |
|000004f0| 6d 6f 72 65 20 72 6f 6f | 6d 20 74 6f 20 77 72 69 |more roo|m to wri|
|00000500| 74 65 20 6c 6f 6e 67 65 | 72 20 70 72 6f 67 72 61 |te longe|r progra|
|00000510| 6d 73 21 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |ms!.... | |
|00000520| 20 44 69 73 74 72 69 62 | 75 74 69 6f 6e 0d 0a 0d | Distrib|ution...|
|00000530| 0a 20 20 20 20 20 20 20 | 20 20 20 59 6f 75 20 61 |. | You a|
|00000540| 72 65 20 66 72 65 65 20 | 74 6f 20 75 73 65 20 74 |re free |to use t|
|00000550| 68 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 70 72 6f |he funct|ions pro|
|00000560| 76 69 64 65 64 20 69 6e | 20 74 68 65 20 42 41 53 |vided in| the BAS|
|00000570| 44 4c 58 20 20 6c 69 62 | 72 61 72 79 0d 0a 20 20 |DLX lib|rary.. |
|00000580| 20 20 20 20 20 20 20 20 | 69 6e 20 79 6f 75 72 20 | |in your |
|00000590| 70 72 6f 67 72 61 6d 73 | 2e 20 20 54 68 65 20 63 |programs|. The c|
|000005a0| 6f 70 79 72 69 67 68 74 | 20 69 73 20 6f 6e 6c 79 |opyright| is only|
|000005b0| 20 68 65 72 65 20 74 6f | 20 70 72 65 73 65 72 76 | here to| preserv|
|000005c0| 65 20 6d 79 20 77 6f 72 | 6b 0d 0a 20 20 20 20 20 |e my wor|k.. |
|000005d0| 20 20 20 20 20 61 6e 64 | 20 74 6f 20 70 72 6f 74 | and| to prot|
|000005e0| 65 63 74 20 79 6f 75 20 | 66 72 6f 6d 20 61 6e 79 |ect you |from any|
|000005f0| 20 75 6e 61 75 74 68 6f | 72 69 7a 65 64 20 6d 6f | unautho|rized mo|
|00000600| 64 69 66 69 63 61 74 69 | 6f 6e 73 20 6f 66 20 42 |dificati|ons of B|
|00000610| 41 53 44 4c 58 3b 0d 0a | 20 20 20 20 20 20 20 20 |ASDLX;..| |
|00000620| 20 20 69 74 20 69 73 20 | 4e 4f 54 20 68 65 72 65 | it is |NOT here|
|00000630| 20 20 74 6f 20 20 70 72 | 6f 74 65 63 74 20 20 61 | to pr|otect a|
|00000640| 67 61 69 6e 73 74 20 20 | 74 68 65 20 20 66 72 65 |gainst |the fre|
|00000650| 65 20 20 64 69 73 74 72 | 69 62 75 74 69 6f 6e 20 |e distr|ibution |
|00000660| 20 6f 66 0d 0a 20 20 20 | 20 20 20 20 20 20 20 42 | of.. | B|
|00000670| 41 53 44 4c 58 2e 20 20 | 59 6f 75 20 6d 61 79 20 |ASDLX. |You may |
|00000680| 63 6f 70 79 20 61 6e 64 | 20 64 69 73 74 72 69 62 |copy and| distrib|
|00000690| 75 74 65 20 42 41 53 44 | 4c 58 20 74 6f 20 20 6f |ute BASD|LX to o|
|000006a0| 74 68 65 72 73 20 61 73 | 20 6c 6f 6e 67 20 61 73 |thers as| long as|
|000006b0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 6e 6f 20 20 |.. | no |
|000006c0| 66 65 65 20 6f 72 20 73 | 70 65 63 69 61 6c 20 63 |fee or s|pecial c|
|000006d0| 6f 6e 73 69 64 65 72 61 | 74 69 6f 6e 20 69 73 20 |onsidera|tion is |
|000006e0| 63 68 61 72 67 65 64 20 | 61 6e 64 20 61 6c 6c 20 |charged |and all |
|000006f0| 20 6f 66 20 20 74 68 65 | 20 20 72 65 2d 0d 0a 20 | of the| re-.. |
|00000700| 20 20 20 20 20 20 20 20 | 20 6c 61 74 65 64 20 20 | | lated |
|00000710| 66 69 6c 65 73 20 20 74 | 6f 20 20 42 41 53 44 4c |files t|o BASDL|
|00000720| 58 20 20 61 72 65 20 69 | 6e 63 6c 75 64 65 64 20 |X are i|ncluded |
|00000730| 74 6f 67 65 74 68 65 72 | 20 69 6e 20 74 68 65 20 |together| in the |
|00000740| 75 6e 6d 6f 64 69 66 69 | 65 64 0d 0a 20 20 20 20 |unmodifi|ed.. |
|00000750| 20 20 20 20 20 20 66 6f | 72 6d 2e 20 20 49 66 20 | fo|rm. If |
|00000760| 79 6f 75 20 66 69 6e 64 | 20 75 73 65 20 6f 66 20 |you find| use of |
|00000770| 42 41 53 44 4c 58 20 69 | 6e 20 79 6f 75 72 20 70 |BASDLX i|n your p|
|00000780| 72 6f 67 72 61 6d 73 20 | 61 6e 64 20 66 69 6e 64 |rograms |and find|
|00000790| 20 20 69 74 20 20 61 0d | 0a 20 20 20 20 20 20 20 | it a.|. |
|000007a0| 20 20 20 76 61 6c 75 61 | 62 6c 65 20 70 72 6f 67 | valua|ble prog|
|000007b0| 72 61 6d 6d 69 6e 67 20 | 74 6f 6f 6c 20 74 68 65 |ramming |tool the|
|000007c0| 6e 20 49 20 77 6f 75 6c | 64 20 61 70 70 72 65 63 |n I woul|d apprec|
|000007d0| 69 61 74 65 20 69 74 20 | 69 66 20 79 6f 75 20 77 |iate it |if you w|
|000007e0| 6f 75 6c 64 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ould.. | |
|000007f0| 73 65 6e 64 20 20 61 20 | 20 63 6f 6e 74 72 69 62 |send a | contrib|
|00000800| 75 74 69 6f 6e 20 20 28 | 24 32 35 20 73 75 67 67 |ution (|$25 sugg|
|00000810| 65 73 74 65 64 29 2e 20 | 20 49 74 20 20 77 6f 75 |ested). | It wou|
|00000820| 6c 64 20 62 65 20 6e 69 | 63 65 20 69 66 20 79 6f |ld be ni|ce if yo|
|00000830| 75 0d 0a 20 20 20 20 20 | 20 20 20 20 20 63 6f 75 |u.. | cou|
|00000840| 6c 64 20 61 63 6b 6e 6f | 77 6c 65 64 67 65 20 75 |ld ackno|wledge u|
|00000850| 73 65 20 6f 66 20 42 41 | 53 44 4c 58 20 66 75 6e |se of BA|SDLX fun|
|00000860| 63 74 69 6f 6e 73 20 20 | 69 6e 20 20 79 6f 75 72 |ctions |in your|
|00000870| 20 20 70 72 6f 67 72 61 | 6d 73 20 20 6f 72 0d 0a | progra|ms or..|
|00000880| 20 20 20 20 20 20 20 20 | 20 20 64 6f 63 75 6d 65 | | docume|
|00000890| 6e 74 61 74 69 6f 6e 20 | 74 68 61 74 20 75 73 65 |ntation |that use|
|000008a0| 20 74 68 65 6d 2e 20 57 | 69 74 68 20 61 20 6d 69 | them. W|ith a mi|
|000008b0| 6e 69 6d 75 6d 20 63 6f | 6e 74 72 69 62 75 74 69 |nimum co|ntributi|
|000008c0| 6f 6e 20 6f 66 20 24 32 | 35 20 49 0d 0a 20 20 20 |on of $2|5 I.. |
|000008d0| 20 20 20 20 20 20 20 77 | 69 6c 6c 20 20 73 65 6e | w|ill sen|
|000008e0| 64 20 20 79 6f 75 20 20 | 61 20 64 69 73 6b 20 77 |d you |a disk w|
|000008f0| 69 74 68 20 74 68 65 20 | 73 6f 75 72 63 65 20 63 |ith the |source c|
|00000900| 6f 64 65 20 74 6f 20 42 | 41 53 44 4c 58 2e 20 20 |ode to B|ASDLX. |
|00000910| 50 72 65 76 69 6f 75 73 | 0d 0a 20 20 20 20 20 20 |Previous|.. |
|00000920| 20 20 20 20 63 6f 6e 74 | 72 69 62 75 74 6f 72 73 | cont|ributors|
|00000930| 20 77 69 6c 6c 20 20 6e | 65 65 64 20 6f 6e 6c 79 | will n|eed only|
|00000940| 20 73 65 6e 64 20 24 31 | 30 20 74 6f 20 20 72 65 | send $1|0 to re|
|00000950| 63 65 69 76 65 20 20 61 | 6e 20 20 75 70 64 61 74 |ceive a|n updat|
|00000960| 65 20 20 6f 66 0d 0a 20 | 20 20 20 20 20 20 20 20 |e of.. | |
|00000970| 20 42 41 53 44 4c 58 2e | 20 41 20 63 6f 6e 74 72 | BASDLX.| A contr|
|00000980| 69 62 75 74 69 6f 6e 20 | 6f 66 20 24 35 35 20 77 |ibution |of $55 w|
|00000990| 69 6c 6c 20 67 72 61 6e | 74 20 79 6f 75 20 61 20 |ill gran|t you a |
|000009a0| 6f 6e 65 20 79 65 61 72 | 20 73 75 62 73 63 72 69 |one year| subscri|
|000009b0| 70 2d 0d 0a 20 20 20 20 | 20 20 20 20 20 20 74 69 |p-.. | ti|
|000009c0| 6f 6e 20 20 74 6f 20 20 | 42 41 53 44 4c 58 2e 20 |on to |BASDLX. |
|000009d0| 20 57 69 74 68 20 20 61 | 20 20 73 75 62 73 63 72 | With a| subscr|
|000009e0| 69 70 74 69 6f 6e 20 20 | 20 79 6f 75 20 77 69 6c |iption | you wil|
|000009f0| 6c 20 61 75 74 6f 6d 61 | 74 69 63 61 6c 6c 79 0d |l automa|tically.|
|00000a00| 0a 20 20 20 20 20 20 20 | 20 20 20 72 65 63 65 69 |. | recei|
|00000a10| 76 65 20 6e 65 77 20 75 | 70 64 61 74 65 73 20 61 |ve new u|pdates a|
|00000a20| 73 20 73 6f 6f 6e 20 61 | 73 20 74 68 65 79 20 63 |s soon a|s they c|
|00000a30| 6f 6d 65 20 6f 75 74 20 | 20 28 61 62 6f 75 74 20 |ome out | (about |
|00000a40| 20 31 30 20 20 75 70 64 | 61 74 65 73 0d 0a 20 20 | 10 upd|ates.. |
|00000a50| 20 20 20 20 20 20 20 20 | 70 65 72 20 20 79 65 61 | |per yea|
|00000a60| 72 2e 29 20 20 20 20 55 | 70 64 61 74 65 73 20 20 |r.) U|pdates |
|00000a70| 63 6f 6d 65 20 20 63 6f | 6d 70 6c 65 74 65 20 77 |come co|mplete w|
|00000a80| 69 74 68 20 73 6f 75 72 | 63 65 20 26 20 6f 62 6a |ith sour|ce & obj|
|00000a90| 65 63 74 20 63 6f 64 65 | 2c 0d 0a 20 20 20 20 20 |ect code|,.. |
|00000aa0| 20 20 20 20 20 42 41 53 | 44 4c 58 20 6c 69 62 72 | BAS|DLX libr|
|00000ab0| 61 72 79 2c 20 61 6e 64 | 20 64 69 73 6b 2d 62 61 |ary, and| disk-ba|
|00000ac0| 73 65 64 20 64 6f 63 75 | 6d 65 6e 74 61 74 69 6f |sed docu|mentatio|
|00000ad0| 6e 2e 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |n..... | |
|00000ae0| 55 73 69 6e 67 20 42 41 | 53 44 4c 58 20 77 69 74 |Using BA|SDLX wit|
|00000af0| 68 20 74 68 65 20 49 42 | 4d 20 42 41 53 49 43 20 |h the IB|M BASIC |
|00000b00| 43 6f 6d 70 69 6c 65 72 | 0d 0a 0d 0a 20 20 20 20 |Compiler|.... |
|00000b10| 20 20 20 20 20 20 54 68 | 65 73 65 20 66 75 6e 63 | Th|ese func|
|00000b20| 74 69 6f 6e 73 20 68 61 | 76 65 20 62 65 65 6e 20 |tions ha|ve been |
|00000b30| 69 6e 63 6f 72 70 6f 72 | 61 74 65 64 20 69 6e 74 |incorpor|ated int|
|00000b40| 6f 20 20 61 20 20 6c 69 | 62 72 61 72 79 20 20 74 |o a li|brary t|
|00000b50| 6f 20 20 6d 61 6b 65 0d | 0a 20 20 20 20 20 20 20 |o make.|. |
|00000b60| 20 20 20 74 68 65 6d 20 | 65 61 73 69 6c 79 20 61 | them |easily a|
|00000b70| 63 63 65 73 73 69 62 6c | 65 20 62 79 20 74 68 65 |ccessibl|e by the|
|00000b80| 20 44 4f 53 20 4c 49 4e | 4b 2e 45 58 45 20 70 72 | DOS LIN|K.EXE pr|
|00000b90| 6f 67 72 61 6d 2e 20 20 | 41 6c 6c 20 79 6f 75 20 |ogram. |All you |
|00000ba0| 68 61 76 65 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |have.. | |
|00000bb0| 74 6f 20 20 64 6f 20 69 | 73 20 63 6f 70 79 20 42 |to do i|s copy B|
|00000bc0| 41 53 44 4c 58 2e 4c 49 | 42 20 74 6f 20 74 68 65 |ASDLX.LI|B to the|
|00000bd0| 20 64 69 72 65 63 74 6f | 72 79 20 6f 72 20 64 69 | directo|ry or di|
|00000be0| 73 6b 20 77 68 65 72 65 | 20 79 6f 75 20 6b 65 65 |sk where| you kee|
|00000bf0| 70 0d 0a 20 20 20 20 20 | 20 20 20 20 20 79 6f 75 |p.. | you|
|00000c00| 72 20 6c 69 62 72 61 72 | 79 20 66 69 6c 65 73 2e |r librar|y files.|
|00000c10| 20 20 20 57 68 65 6e 20 | 79 6f 75 20 6c 69 6e 6b | When |you link|
|00000c20| 20 79 6f 75 72 20 20 70 | 72 6f 67 72 61 6d 73 20 | your p|rograms |
|00000c30| 74 68 61 74 20 75 73 65 | 20 66 75 6e 63 2d 0d 0a |that use| func-..|
|00000c40| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00000c50| 20 20 20 20 20 20 2d 2d | 2d 20 42 41 53 44 4c 58 | --|- BASDLX|
|00000c60| 20 20 20 56 65 72 73 69 | 6f 6e 20 31 2e 36 20 20 | Versi|on 1.6 |
|00000c70| 20 53 65 70 74 65 6d 62 | 65 72 20 31 39 38 37 20 | Septemb|er 1987 |
|00000c80| 2d 2d 2d 0d 0a 0c 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |---.....|........|
|00000c90| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 42 |.. | B|
|00000ca0| 41 53 44 4c 58 20 28 43 | 29 20 43 6f 70 79 72 69 |ASDLX (C|) Copyri|
|00000cb0| 67 68 74 20 31 39 38 36 | 2c 31 39 38 37 20 42 79 |ght 1986|,1987 By|
|00000cc0| 20 47 75 73 74 61 76 6f | 20 48 2e 20 56 65 72 64 | Gustavo| H. Verd|
|00000cd0| 75 6e 20 20 50 61 67 65 | 20 32 0d 0a 0d 0a 20 20 |un Page| 2.... |
|00000ce0| 20 20 20 20 20 20 20 20 | 74 69 6f 6e 73 20 20 66 | |tions f|
|00000cf0| 72 6f 6d 20 20 42 41 53 | 44 4c 58 2c 20 20 20 62 |rom BAS|DLX, b|
|00000d00| 65 20 73 75 72 65 20 74 | 6f 20 73 70 65 63 69 66 |e sure t|o specif|
|00000d10| 79 3a 20 42 41 53 44 4c | 58 20 77 68 65 6e 20 74 |y: BASDL|X when t|
|00000d20| 68 65 20 6c 69 6e 6b 65 | 72 0d 0a 20 20 20 20 20 |he linke|r.. |
|00000d30| 20 20 20 20 20 70 72 6f | 6d 70 74 73 20 79 6f 75 | pro|mpts you|
|00000d40| 20 66 6f 72 20 61 20 4c | 69 62 72 61 72 79 20 5b | for a L|ibrary [|
|00000d50| 2e 4c 49 42 5d 20 66 69 | 6c 65 28 73 29 2e 20 20 |.LIB] fi|le(s). |
|00000d60| 50 6c 65 61 73 65 20 72 | 65 66 65 72 20 20 74 6f |Please r|efer to|
|00000d70| 20 20 79 6f 75 72 0d 0a | 20 20 20 20 20 20 20 20 | your..| |
|00000d80| 20 20 44 4f 53 20 6d 61 | 6e 75 61 6c 20 66 6f 72 | DOS ma|nual for|
|00000d90| 20 6d 6f 72 65 20 69 6e | 66 6f 72 6d 61 74 69 6f | more in|formatio|
|00000da0| 6e 20 6f 6e 20 74 68 65 | 20 4c 49 4e 4b 2e 45 58 |n on the| LINK.EX|
|00000db0| 45 20 70 72 6f 67 72 61 | 6d 2e 0d 0a 0d 0a 20 20 |E progra|m..... |
|00000dc0| 20 20 20 20 20 20 20 20 | 55 73 69 6e 67 20 42 41 | |Using BA|
|00000dd0| 53 44 4c 58 20 77 69 74 | 68 20 74 68 65 20 4d 69 |SDLX wit|h the Mi|
|00000de0| 63 72 6f 73 6f 66 74 20 | 51 75 69 63 6b 42 41 53 |crosoft |QuickBAS|
|00000df0| 49 43 20 43 6f 6d 70 69 | 6c 65 72 0d 0a 0d 0a 20 |IC Compi|ler.... |
|00000e00| 20 20 20 20 20 20 20 20 | 20 49 20 20 61 6d 20 20 | | I am |
|00000e10| 6e 6f 77 20 20 69 6e 63 | 6c 75 64 69 6e 67 20 20 |now inc|luding |
|00000e20| 61 20 20 75 73 65 72 20 | 20 6c 69 62 72 61 72 79 |a user | library|
|00000e30| 20 20 66 6f 72 20 20 75 | 73 65 20 77 69 74 68 20 | for u|se with |
|00000e40| 51 75 69 63 6b 42 41 53 | 49 43 0d 0a 20 20 20 20 |QuickBAS|IC.. |
|00000e50| 20 20 20 20 20 20 28 42 | 41 53 44 4c 58 2e 45 58 | (B|ASDLX.EX|
|00000e60| 45 2e 29 20 50 6c 65 61 | 73 65 20 72 65 61 64 20 |E.) Plea|se read |
|00000e70| 79 6f 75 72 20 51 75 69 | 63 6b 42 41 53 49 43 20 |your Qui|ckBASIC |
|00000e80| 75 73 65 72 20 20 6d 61 | 6e 75 61 6c 20 20 66 6f |user ma|nual fo|
|00000e90| 72 20 20 6d 6f 72 65 0d | 0a 20 20 20 20 20 20 20 |r more.|. |
|00000ea0| 20 20 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 6f | infor|mation o|
|00000eb0| 6e 20 55 73 65 72 20 4c | 69 62 72 61 72 69 65 73 |n User L|ibraries|
|00000ec0| 2e 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 4e |..... | N|
|00000ed0| 6f 74 65 3a 20 49 66 20 | 79 6f 75 20 6e 65 65 64 |ote: If |you need|
|00000ee0| 20 74 6f 20 67 65 74 20 | 61 20 63 6f 70 79 20 6f | to get |a copy o|
|00000ef0| 66 20 74 68 65 20 6f 62 | 6a 65 63 74 20 63 6f 64 |f the ob|ject cod|
|00000f00| 65 20 74 68 65 6e 2c 20 | 20 73 65 6e 64 20 6d 65 |e then, | send me|
|00000f10| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 24 35 20 6f |.. | $5 o|
|00000f20| 72 2c 20 20 24 33 20 61 | 6e 64 20 20 61 20 44 69 |r, $3 a|nd a Di|
|00000f30| 73 6b 20 61 6e 64 20 49 | 27 6c 6c 20 6d 61 69 6c |sk and I|'ll mail|
|00000f40| 20 79 6f 75 20 74 68 65 | 20 20 6c 61 74 65 73 74 | you the| latest|
|00000f50| 20 20 76 65 72 73 69 6f | 6e 20 20 6f 66 0d 0a 20 | versio|n of.. |
|00000f60| 20 20 20 20 20 20 20 20 | 20 42 41 53 44 4c 58 20 | | BASDLX |
|00000f70| 77 69 74 68 20 4f 62 6a | 65 63 74 20 63 6f 64 65 |with Obj|ect code|
|00000f80| 2e 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 41 |..... | A|
|00000f90| 74 74 65 6e 74 69 6f 6e | 20 51 75 69 63 6b 42 41 |ttention| QuickBA|
|00000fa0| 53 49 43 20 33 2e 30 20 | 55 73 65 72 73 0d 0a 0d |SIC 3.0 |Users...|
|00000fb0| 0a 20 20 20 20 20 20 20 | 20 20 20 49 66 20 20 79 |. | If y|
|00000fc0| 6f 75 20 20 6e 65 65 64 | 20 20 74 6f 20 20 63 72 |ou need| to cr|
|00000fd0| 65 61 74 65 20 61 20 73 | 74 61 6e 64 20 61 6c 6f |eate a s|tand alo|
|00000fe0| 6e 65 20 70 72 6f 67 72 | 61 6d 20 75 73 69 6e 67 |ne progr|am using|
|00000ff0| 20 51 42 20 77 69 74 68 | 20 74 68 65 0d 0a 20 20 | QB with| the.. |
|00001000| 20 20 20 20 20 20 20 20 | 63 6f 6d 70 69 6c 65 20 | |compile |
|00001010| 74 6f 20 42 43 4f 4d 33 | 30 20 6f 70 74 69 6f 6e |to BCOM3|0 option|
|00001020| 2c 20 64 6f 20 6e 6f 74 | 20 75 73 65 20 74 68 65 |, do not| use the|
|00001030| 20 70 72 6f 67 72 61 6d | 6d 69 6e 67 20 65 6e 76 | program|ming env|
|00001040| 69 72 6f 6e 6d 65 6e 74 | 3b 0d 0a 20 20 20 20 20 |ironment|;.. |
|00001050| 20 20 20 20 20 49 74 20 | 68 61 73 20 61 20 62 75 | It |has a bu|
|00001060| 67 20 69 6e 20 69 74 21 | 20 20 55 73 65 20 74 68 |g in it!| Use th|
|00001070| 65 20 63 6f 6d 70 69 6c | 65 20 66 72 6f 6d 20 63 |e compil|e from c|
|00001080| 6f 6d 6d 61 6e 64 20 6c | 69 6e 65 20 6f 70 74 69 |ommand l|ine opti|
|00001090| 6f 6e 20 69 6e 2d 0d 0a | 20 20 20 20 20 20 20 20 |on in-..| |
|000010a0| 20 20 73 74 65 61 64 2e | 20 53 65 65 20 70 61 67 | stead.| See pag|
|000010b0| 65 20 37 31 20 6f 66 20 | 61 6e 79 20 51 42 20 6d |e 71 of |any QB m|
|000010c0| 61 6e 75 61 6c 20 66 6f | 72 20 6d 6f 72 65 20 69 |anual fo|r more i|
|000010d0| 6e 66 6f 72 6d 61 74 69 | 6f 6e 20 61 62 6f 75 74 |nformati|on about|
|000010e0| 20 51 42 0d 0a 20 20 20 | 20 20 20 20 20 20 20 63 | QB.. | c|
|000010f0| 6f 6d 70 69 6c 65 20 6f | 70 74 69 6f 6e 73 2e 0d |ompile o|ptions..|
|00001100| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 54 68 65 |... | The|
|00001110| 20 46 75 74 75 72 65 0d | 0a 0d 0a 20 20 20 20 20 | Future.|... |
|00001120| 20 20 20 20 20 49 20 68 | 61 76 65 20 6f 76 65 72 | I h|ave over|
|00001130| 20 32 30 20 6e 65 77 20 | 66 75 6e 63 74 69 6f 6e | 20 new |function|
|00001140| 20 69 64 65 61 73 20 74 | 68 61 74 20 49 20 68 6f | ideas t|hat I ho|
|00001150| 70 65 20 74 6f 20 61 64 | 64 20 74 6f 20 42 41 53 |pe to ad|d to BAS|
|00001160| 44 4c 58 20 61 73 0d 0a | 20 20 20 20 20 20 20 20 |DLX as..| |
|00001170| 20 20 73 6f 6f 6e 20 61 | 73 20 74 68 65 79 20 61 | soon a|s they a|
|00001180| 72 65 20 72 65 61 64 79 | 2e 20 53 6f 6d 65 20 61 |re ready|. Some a|
|00001190| 72 65 20 69 6e 20 74 68 | 65 20 61 6c 70 68 61 20 |re in th|e alpha |
|000011a0| 74 65 73 74 69 6e 67 20 | 73 74 61 67 65 20 77 68 |testing |stage wh|
|000011b0| 69 6c 65 0d 0a 20 20 20 | 20 20 20 20 20 20 20 6f |ile.. | o|
|000011c0| 74 68 65 72 73 20 20 61 | 72 65 20 20 73 74 69 6c |thers a|re stil|
|000011d0| 6c 20 20 6f 6e 20 70 61 | 70 65 72 2e 20 20 54 68 |l on pa|per. Th|
|000011e0| 65 20 70 72 69 6d 61 72 | 79 20 67 6f 61 6c 20 66 |e primar|y goal f|
|000011f0| 6f 72 20 42 41 53 44 4c | 58 20 69 73 20 74 68 65 |or BASDL|X is the|
|00001200| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 63 72 65 61 |.. | crea|
|00001210| 74 69 6f 6e 20 6f 66 20 | 61 20 6c 69 62 72 61 72 |tion of |a librar|
|00001220| 79 20 6f 66 20 66 75 6e | 63 74 69 6f 6e 73 20 74 |y of fun|ctions t|
|00001230| 68 61 74 20 61 72 65 20 | 6e 6f 74 20 6f 6e 6c 79 |hat are |not only|
|00001240| 20 68 65 6c 70 66 75 6c | 20 20 62 75 74 0d 0a 20 | helpful| but.. |
|00001250| 20 20 20 20 20 20 20 20 | 20 61 72 65 20 6f 6e 65 | | are one|
|00001260| 2d 6f 66 2d 61 2d 6b 69 | 6e 64 2c 20 4f 72 69 67 |-of-a-ki|nd, Orig|
|00001270| 69 6e 61 6c 20 26 20 55 | 6e 69 71 75 65 2e 20 49 |inal & U|nique. I|
|00001280| 20 61 6d 20 61 6c 77 61 | 79 73 20 6d 6f 72 65 20 | am alwa|ys more |
|00001290| 74 68 61 6e 20 77 69 6c | 6c 2d 0d 0a 20 20 20 20 |than wil|l-.. |
|000012a0| 20 20 20 20 20 20 69 6e | 67 20 74 6f 20 68 65 61 | in|g to hea|
|000012b0| 72 20 66 72 6f 6d 20 79 | 6f 75 20 61 6e 79 20 73 |r from y|ou any s|
|000012c0| 75 67 67 65 73 74 69 6f | 6e 73 20 79 6f 75 20 6d |uggestio|ns you m|
|000012d0| 61 79 20 68 61 76 65 20 | 66 6f 72 20 42 41 53 44 |ay have |for BASD|
|000012e0| 4c 58 2e 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |LX......|........|
|000012f0| 0a 0d 0a 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |........|........|
|00001300| 0a 0d 0a 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 20 |........|....... |
|00001310| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001320| 20 20 20 2d 2d 2d 20 42 | 41 53 44 4c 58 20 20 20 | --- B|ASDLX |
|00001330| 56 65 72 73 69 6f 6e 20 | 31 2e 36 20 20 20 53 65 |Version |1.6 Se|
|00001340| 70 74 65 6d 62 65 72 20 | 31 39 38 37 20 2d 2d 2d |ptember |1987 ---|
|00001350| 0d 0a 0c 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 20 |........|....... |
|00001360| 20 20 20 20 20 20 20 20 | 20 20 20 20 42 41 53 44 | | BASD|
|00001370| 4c 58 20 28 43 29 20 43 | 6f 70 79 72 69 67 68 74 |LX (C) C|opyright|
|00001380| 20 31 39 38 36 2c 31 39 | 38 37 20 42 79 20 47 75 | 1986,19|87 By Gu|
|00001390| 73 74 61 76 6f 20 48 2e | 20 56 65 72 64 75 6e 20 |stavo H.| Verdun |
|000013a0| 20 50 61 67 65 20 33 0d | 0a 0d 0a 20 20 20 20 20 | Page 3.|... |
|000013b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000013c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 | | S|
|000013d0| 70 65 63 69 61 6c 20 4e | 6f 74 65 73 0d 0a 0d 0a |pecial N|otes....|
|000013e0| 20 20 20 20 20 20 20 20 | 20 20 54 68 65 20 20 66 | | The f|
|000013f0| 75 6e 63 74 69 6f 6e 73 | 20 20 70 72 6f 76 69 64 |unctions| provid|
|00001400| 65 64 20 20 69 6e 20 74 | 68 69 73 20 6c 69 62 72 |ed in t|his libr|
|00001410| 61 72 79 20 61 72 65 20 | 61 76 61 69 6c 61 62 6c |ary are |availabl|
|00001420| 65 20 74 6f 20 79 6f 75 | 20 62 79 0d 0a 20 20 20 |e to you| by.. |
|00001430| 20 20 20 20 20 20 20 75 | 73 69 6e 67 20 74 68 65 | u|sing the|
|00001440| 20 43 41 4c 4c 20 63 6f | 6d 6d 61 6e 64 20 66 72 | CALL co|mmand fr|
|00001450| 6f 6d 20 63 6f 6d 70 69 | 6c 65 64 20 42 41 53 49 |om compi|led BASI|
|00001460| 43 2e 20 41 6c 6c 20 6e | 75 6d 65 72 69 63 20 76 |C. All n|umeric v|
|00001470| 61 72 69 61 62 6c 65 73 | 0d 0a 20 20 20 20 20 20 |ariables|.. |
|00001480| 20 20 20 20 70 61 73 73 | 65 64 20 61 73 20 61 72 | pass|ed as ar|
|00001490| 67 75 6d 65 6e 74 73 20 | 74 6f 20 74 68 65 20 66 |guments |to the f|
|000014a0| 75 6e 63 74 69 6f 6e 73 | 20 6d 75 73 74 20 20 64 |unctions| must d|
|000014b0| 65 66 69 6e 65 64 20 20 | 61 73 20 20 69 6e 74 65 |efined |as inte|
|000014c0| 67 65 72 73 2e 0d 0a 20 | 20 20 20 20 20 20 20 20 |gers... | |
|000014d0| 20 54 68 69 73 20 6d 65 | 61 6e 73 20 74 68 61 74 | This me|ans that|
|000014e0| 20 79 6f 75 20 63 61 6e | 20 65 69 74 68 65 72 20 | you can| either |
|000014f0| 67 6c 6f 62 61 6c 6c 79 | 20 73 65 74 20 61 6c 6c |globally| set all|
|00001500| 20 6e 75 6d 65 72 69 63 | 20 76 61 72 69 61 62 6c | numeric| variabl|
|00001510| 65 73 0d 0a 20 20 20 20 | 20 20 20 20 20 20 74 6f |es.. | to|
|00001520| 20 69 6e 74 65 67 65 72 | 73 20 62 79 20 69 73 73 | integer|s by iss|
|00001530| 75 69 6e 67 20 74 68 65 | 20 44 45 46 49 4e 54 20 |uing the| DEFINT |
|00001540| 41 2d 5a 20 63 6f 6d 6d | 61 6e 64 20 61 74 20 74 |A-Z comm|and at t|
|00001550| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 0d |he begin|ning of.|
|00001560| 0a 20 20 20 20 20 20 20 | 20 20 20 79 6f 75 72 20 |. | your |
|00001570| 70 72 6f 67 72 61 6d 20 | 6f 72 2c 20 20 79 6f 75 |program |or, you|
|00001580| 20 63 61 6e 20 64 65 63 | 6c 61 72 65 20 61 20 73 | can dec|lare a s|
|00001590| 69 6e 67 6c 65 20 76 61 | 72 69 61 62 6c 65 20 61 |ingle va|riable a|
|000015a0| 73 20 69 6e 74 65 67 65 | 72 20 62 79 0d 0a 20 20 |s intege|r by.. |
|000015b0| 20 20 20 20 20 20 20 20 | 61 64 64 69 6e 67 20 61 | |adding a|
|000015c0| 20 22 25 22 20 73 79 6d | 62 6f 6c 20 61 74 20 74 | "%" sym|bol at t|
|000015d0| 68 65 20 65 6e 64 20 6f | 66 20 69 74 73 20 6e 61 |he end o|f its na|
|000015e0| 6d 65 2e 20 28 69 2e 65 | 2e 20 20 49 25 2c 20 20 |me. (i.e|. I%, |
|000015f0| 74 68 69 73 20 77 69 6c | 6c 0d 0a 20 20 20 20 20 |this wil|l.. |
|00001600| 20 20 20 20 20 64 65 63 | 6c 61 72 65 20 74 68 65 | dec|lare the|
|00001610| 20 76 61 72 69 61 62 6c | 65 20 61 73 20 62 65 69 | variabl|e as bei|
|00001620| 6e 67 20 69 6e 74 65 67 | 65 72 29 2e 20 49 20 77 |ng integ|er). I w|
|00001630| 69 6c 6c 20 61 6c 77 61 | 79 73 20 61 64 64 20 74 |ill alwa|ys add t|
|00001640| 68 65 20 22 25 22 0d 0a | 20 20 20 20 20 20 20 20 |he "%"..| |
|00001650| 20 20 73 79 6d 62 6f 6c | 20 20 61 74 20 20 74 68 | symbol| at th|
|00001660| 65 20 20 65 6e 64 20 6f | 66 20 61 6c 6c 20 6d 79 |e end o|f all my|
|00001670| 20 6e 75 6d 65 72 69 63 | 20 76 61 72 69 61 62 6c | numeric| variabl|
|00001680| 65 73 20 69 6e 20 61 6c | 6c 20 6f 66 20 6d 79 20 |es in al|l of my |
|00001690| 65 78 2d 0d 0a 20 20 20 | 20 20 20 20 20 20 20 61 |ex-.. | a|
|000016a0| 6d 70 6c 65 73 2c 20 74 | 6f 20 72 65 6d 69 6e 64 |mples, t|o remind|
|000016b0| 20 79 6f 75 20 74 68 61 | 74 20 74 68 65 79 20 4d | you tha|t they M|
|000016c0| 55 53 54 20 62 65 20 69 | 6e 74 65 67 65 72 73 2e |UST be i|ntegers.|
|000016d0| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 54 68 |.... | Th|
|000016e0| 65 20 76 61 72 69 61 62 | 6c 65 20 6e 61 6d 65 73 |e variab|le names|
|000016f0| 20 75 73 65 64 20 69 6e | 20 6d 79 20 65 78 61 6d | used in| my exam|
|00001700| 70 6c 65 73 20 64 6f 6e | 27 74 20 68 61 76 65 20 |ples don|'t have |
|00001710| 74 6f 20 20 62 65 20 20 | 65 78 61 63 74 6c 79 0d |to be |exactly.|
|00001720| 0a 20 20 20 20 20 20 20 | 20 20 20 74 68 65 20 20 |. | the |
|00001730| 73 61 6d 65 2e 20 20 79 | 6f 75 20 20 6d 61 79 20 |same. y|ou may |
|00001740| 20 63 68 6f 6f 73 65 20 | 20 6f 74 68 65 72 20 20 | choose | other |
|00001750| 6e 61 6d 65 73 20 74 68 | 61 74 20 77 6f 75 6c 64 |names th|at would|
|00001760| 20 62 65 20 6d 6f 72 65 | 20 61 70 2d 0d 0a 20 20 | be more| ap-.. |
|00001770| 20 20 20 20 20 20 20 20 | 70 72 6f 70 72 69 61 74 | |propriat|
|00001780| 65 2e 20 6b 65 65 70 20 | 69 6e 20 6d 69 6e 64 20 |e. keep |in mind |
|00001790| 74 68 61 74 20 74 68 65 | 20 76 61 72 69 61 62 6c |that the| variabl|
|000017a0| 65 20 74 79 70 65 73 20 | 64 6f 20 68 61 76 65 20 |e types |do have |
|000017b0| 74 6f 20 62 65 20 74 68 | 65 0d 0a 20 20 20 20 20 |to be th|e.. |
|000017c0| 20 20 20 20 20 73 61 6d | 65 20 69 6e 20 74 68 65 | sam|e in the|
|000017d0| 20 61 72 67 75 6d 65 6e | 74 20 6c 69 73 74 20 28 | argumen|t list (|
|000017e0| 69 2e 65 2e 20 73 74 72 | 69 6e 67 73 20 6d 75 73 |i.e. str|ings mus|
|000017f0| 74 20 62 65 20 73 74 72 | 69 6e 67 73 2c 20 69 6e |t be str|ings, in|
|00001800| 74 65 67 65 72 73 0d 0a | 20 20 20 20 20 20 20 20 |tegers..| |
|00001810| 20 20 6d 75 73 74 20 62 | 65 20 69 6e 74 65 67 65 | must b|e intege|
|00001820| 72 73 29 2e 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |rs).....| |
|00001830| 20 20 4e 4f 54 45 3a 20 | 59 6f 75 20 6d 61 79 20 | NOTE: |You may |
|00001840| 66 69 6e 64 20 69 6e 20 | 74 68 65 20 61 72 67 75 |find in |the argu|
|00001850| 6d 65 6e 74 20 6c 69 73 | 74 20 73 6f 6d 65 20 61 |ment lis|t some a|
|00001860| 72 67 75 6d 65 6e 74 73 | 20 20 74 68 61 74 20 20 |rguments| that |
|00001870| 61 72 65 0d 0a 20 20 20 | 20 20 20 20 20 20 20 65 |are.. | e|
|00001880| 6e 63 6c 6f 73 65 64 20 | 69 6e 20 5b 5d 27 73 2e |nclosed |in []'s.|
|00001890| 20 20 54 68 69 73 20 69 | 73 20 75 73 65 64 20 74 | This i|s used t|
|000018a0| 6f 20 73 69 67 6e 69 66 | 79 20 77 68 69 63 68 20 |o signif|y which |
|000018b0| 61 72 67 75 6d 65 6e 74 | 73 20 63 61 6e 20 62 65 |argument|s can be|
|000018c0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 73 61 66 65 |.. | safe|
|000018d0| 6c 79 20 65 6e 74 65 72 | 65 64 20 64 69 72 65 63 |ly enter|ed direc|
|000018e0| 74 6c 79 20 69 6e 73 74 | 65 61 64 20 6f 66 20 6e |tly inst|ead of n|
|000018f0| 65 65 64 69 6e 67 20 74 | 6f 20 73 65 74 20 74 68 |eeding t|o set th|
|00001900| 65 20 76 61 6c 75 65 20 | 69 6e 20 20 61 0d 0a 20 |e value |in a.. |
|00001910| 20 20 20 20 20 20 20 20 | 20 76 61 72 69 61 62 6c | | variabl|
|00001920| 65 2e 20 69 2e 65 2e 20 | 43 41 4c 4c 20 47 55 4e |e. i.e. |CALL GUN|
|00001930| 28 31 30 29 20 6f 72 20 | 43 41 4c 4c 20 47 55 4e |(10) or |CALL GUN|
|00001940| 28 35 2b 35 29 3a 20 61 | 72 65 20 70 65 72 66 65 |(5+5): a|re perfe|
|00001950| 63 74 6c 79 20 6c 65 67 | 61 6c 0d 0a 20 20 20 20 |ctly leg|al.. |
|00001960| 20 20 20 20 20 20 77 61 | 79 73 20 74 6f 20 60 63 | wa|ys to `c|
|00001970| 61 6c 6c 27 20 74 68 65 | 20 47 55 4e 20 66 75 6e |all' the| GUN fun|
|00001980| 63 74 69 6f 6e 3b 20 20 | 45 69 74 68 65 72 20 66 |ction; |Either f|
|00001990| 6f 72 6d 20 77 69 6c 6c | 20 22 66 69 72 65 22 20 |orm will| "fire" |
|000019a0| 74 68 65 20 67 75 6e 0d | 0a 20 20 20 20 20 20 20 |the gun.|. |
|000019b0| 20 20 20 31 30 20 74 69 | 6d 65 73 20 61 6e 64 20 | 10 ti|mes and |
|000019c0| 72 65 74 75 72 6e 2e 20 | 20 4f 6e 6c 79 20 73 6f |return. | Only so|
|000019d0| 6d 65 20 6f 66 20 74 68 | 65 20 76 61 72 69 61 62 |me of th|e variab|
|000019e0| 6c 65 73 20 69 6e 20 42 | 41 53 44 4c 58 20 6d 61 |les in B|ASDLX ma|
|000019f0| 79 20 62 65 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |y be.. | |
|00001a00| 65 6e 74 65 72 65 64 20 | 20 74 68 69 73 20 77 61 |entered | this wa|
|00001a10| 79 20 69 6e 20 61 72 67 | 75 6d 65 6e 74 20 6c 69 |y in arg|ument li|
|00001a20| 73 74 2c 20 20 54 68 69 | 73 20 69 73 20 62 65 63 |st, Thi|s is bec|
|00001a30| 61 75 73 65 20 42 41 53 | 49 43 20 73 74 6f 72 65 |ause BAS|IC store|
|00001a40| 73 0d 0a 20 20 20 20 20 | 20 20 20 20 20 74 68 65 |s.. | the|
|00001a50| 20 76 61 6c 75 65 73 20 | 69 6e 20 61 20 74 65 6d | values |in a tem|
|00001a60| 70 6f 72 61 72 79 20 76 | 61 72 69 61 62 6c 65 20 |porary v|ariable |
|00001a70| 61 6e 64 20 75 70 6f 6e | 20 72 65 74 75 72 6e 20 |and upon| return |
|00001a80| 66 72 6f 6d 20 74 68 65 | 20 66 75 6e 63 2d 0d 0a |from the| func-..|
|00001a90| 20 20 20 20 20 20 20 20 | 20 20 74 69 6f 6e 20 42 | | tion B|
|00001aa0| 41 53 49 43 20 64 65 73 | 74 72 6f 79 73 20 74 68 |ASIC des|troys th|
|00001ab0| 65 6d 2c 20 20 61 6e 64 | 20 42 41 53 44 4c 58 20 |em, and| BASDLX |
|00001ac0| 73 6f 6d 65 74 69 6d 65 | 73 20 72 65 74 75 72 6e |sometime|s return|
|00001ad0| 73 20 76 69 74 61 6c 20 | 69 6e 2d 0d 0a 20 20 20 |s vital |in-.. |
|00001ae0| 20 20 20 20 20 20 20 66 | 6f 72 6d 61 74 69 6f 6e | f|ormation|
|00001af0| 20 69 6e 20 74 68 61 74 | 20 76 61 72 69 61 62 6c | in that| variabl|
|00001b00| 65 2e 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |e..... | |
|00001b10| 41 73 20 49 20 6d 65 6e | 74 69 6f 6e 65 64 20 62 |As I men|tioned b|
|00001b20| 65 66 6f 72 65 20 49 20 | 68 61 76 65 20 74 65 73 |efore I |have tes|
|00001b30| 74 65 64 20 74 68 65 73 | 65 20 66 75 6e 63 74 69 |ted thes|e functi|
|00001b40| 6f 6e 73 20 61 6e 64 20 | 74 68 65 79 2c 20 20 74 |ons and |they, t|
|00001b50| 6f 0d 0a 20 20 20 20 20 | 20 20 20 20 20 74 68 65 |o.. | the|
|00001b60| 20 62 65 73 74 20 6f 66 | 20 6d 79 20 6b 6e 6f 77 | best of| my know|
|00001b70| 6c 65 64 67 65 2c 20 20 | 77 6f 72 6b 20 62 75 67 |ledge, |work bug|
|00001b80| 20 66 72 65 65 2e 20 20 | 42 75 74 2c 20 20 69 66 | free. |But, if|
|00001b90| 20 79 6f 75 20 68 61 70 | 70 65 6e 20 74 6f 0d 0a | you hap|pen to..|
|00001ba0| 20 20 20 20 20 20 20 20 | 20 20 66 69 6e 64 20 20 | | find |
|00001bb0| 61 6e 79 20 20 62 75 67 | 73 20 49 27 6c 6c 20 62 |any bug|s I'll b|
|00001bc0| 65 20 68 61 70 70 79 20 | 74 6f 20 66 69 78 20 74 |e happy |to fix t|
|00001bd0| 68 65 6d 2e 20 20 42 65 | 20 73 75 72 65 20 74 6f |hem. Be| sure to|
|00001be0| 20 63 68 65 63 6b 20 74 | 68 61 74 0d 0a 20 20 20 | check t|hat.. |
|00001bf0| 20 20 20 20 20 20 20 79 | 6f 75 20 61 72 65 20 43 | y|ou are C|
|00001c00| 41 4c 4c 69 6e 67 20 74 | 68 65 20 66 75 6e 63 74 |ALLing t|he funct|
|00001c10| 69 6f 6e 73 20 70 72 6f | 70 65 72 6c 79 2e 20 20 |ions pro|perly. |
|00001c20| 54 68 61 74 20 20 69 73 | 20 20 74 68 61 74 20 20 |That is| that |
|00001c30| 79 6f 75 20 20 61 72 65 | 0d 0a 20 20 20 20 20 20 |you are|.. |
|00001c40| 20 20 20 20 73 65 6e 64 | 69 6e 67 20 20 74 68 65 | send|ing the|
|00001c50| 20 20 63 6f 72 72 65 63 | 74 20 61 72 67 75 6d 65 | correc|t argume|
|00001c60| 6e 74 73 20 74 6f 20 74 | 68 65 20 66 75 6e 63 74 |nts to t|he funct|
|00001c70| 69 6f 6e 2e 20 20 4f 6e | 65 20 6f 66 20 74 68 65 |ion. On|e of the|
|00001c80| 20 6d 6f 73 74 0d 0a 20 | 20 20 20 20 20 20 20 20 | most.. | |
|00001c90| 20 63 6f 6d 6d 6f 6e 20 | 65 72 72 6f 72 20 74 68 | common |error th|
|00001ca0| 61 74 20 6f 63 63 75 72 | 73 20 69 73 20 77 68 65 |at occur|s is whe|
|00001cb0| 6e 20 74 68 65 20 20 63 | 61 6c 6c 69 6e 67 20 20 |n the c|alling |
|00001cc0| 70 72 6f 67 72 61 6d 20 | 20 73 65 6e 64 73 20 20 |program | sends |
|00001cd0| 74 6f 0d 0a 20 20 20 20 | 20 20 20 20 20 20 74 68 |to.. | th|
|00001ce0| 65 20 20 66 75 6e 63 74 | 69 6f 6e 20 20 61 6e 20 |e funct|ion an |
|00001cf0| 69 6e 63 6f 72 72 65 63 | 74 20 76 61 72 69 61 62 |incorrec|t variab|
|00001d00| 6c 65 20 74 79 70 65 2e | 20 20 52 65 6d 65 6d 62 |le type.| Rememb|
|00001d10| 65 72 20 74 68 61 74 20 | 6e 75 6d 65 72 69 63 0d |er that |numeric.|
|00001d20| 0a 20 20 20 20 20 20 20 | 20 20 20 76 61 72 69 61 |. | varia|
|00001d30| 62 6c 65 73 20 6d 75 73 | 74 20 62 65 20 64 65 63 |bles mus|t be dec|
|00001d40| 6c 61 72 65 64 20 69 6e | 74 65 67 65 72 2e 0d 0a |lared in|teger...|
|00001d50| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 50 6c 65 61 |.. | Plea|
|00001d60| 73 65 20 72 65 66 65 72 | 20 61 6e 79 20 71 75 65 |se refer| any que|
|00001d70| 73 74 69 6f 6e 73 2c 20 | 63 6f 6d 6d 65 6e 74 73 |stions, |comments|
|00001d80| 2c 20 20 72 65 71 75 65 | 73 74 73 20 66 6f 72 20 |, reque|sts for |
|00001d90| 6e 65 77 20 66 75 6e 63 | 74 69 6f 6e 73 0d 0a 20 |new func|tions.. |
|00001da0| 20 20 20 20 20 20 20 20 | 20 6f 72 20 63 6f 6e 74 | | or cont|
|00001db0| 72 69 62 75 74 69 6f 6e | 73 20 74 6f 20 74 68 65 |ribution|s to the|
|00001dc0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 61 64 64 72 65 | followi|ng addre|
|00001dd0| 73 73 3a 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |ss:.... | |
|00001de0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001df0| 20 20 20 20 20 20 20 20 | 47 75 73 74 61 76 6f 20 | |Gustavo |
|00001e00| 20 48 2e 20 56 65 72 64 | 75 6e 0d 0a 20 20 20 20 | H. Verd|un.. |
|00001e10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e20| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 36 34 32 | | 642|
|00001e30| 34 20 48 6f 6c 6c 69 6e | 73 20 44 72 69 76 65 0d |4 Hollin|s Drive.|
|00001e40| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001e50| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00001e60| 20 20 42 65 74 68 65 73 | 64 61 2c 20 4d 44 20 32 | Bethes|da, MD 2|
|00001e70| 30 38 31 37 0d 0a 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |0817....|........|
|00001e80| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00001e90| 20 20 20 20 20 20 2d 2d | 2d 20 42 41 53 44 4c 58 | --|- BASDLX|
|00001ea0| 20 20 20 56 65 72 73 69 | 6f 6e 20 31 2e 36 20 20 | Versi|on 1.6 |
|00001eb0| 20 53 65 70 74 65 6d 62 | 65 72 20 31 39 38 37 20 | Septemb|er 1987 |
|00001ec0| 2d 2d 2d 0d 0a 0c 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |---.....|........|
|00001ed0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 42 |.. | B|
|00001ee0| 41 53 44 4c 58 20 28 43 | 29 20 43 6f 70 79 72 69 |ASDLX (C|) Copyri|
|00001ef0| 67 68 74 20 31 39 38 36 | 2c 31 39 38 37 20 42 79 |ght 1986|,1987 By|
|00001f00| 20 47 75 73 74 61 76 6f | 20 48 2e 20 56 65 72 64 | Gustavo| H. Verd|
|00001f10| 75 6e 20 20 50 61 67 65 | 20 34 0d 0a 0d 0a 20 20 |un Page| 4.... |
|00001f20| 20 20 20 20 20 20 20 20 | 46 75 6e 63 74 69 6f 6e | |Function|
|00001f30| 20 4e 61 6d 65 3a 20 41 | 4c 4c 44 49 52 53 0d 0a | Name: A|LLDIRS..|
|00001f40| 20 20 20 20 20 20 20 20 | 20 20 41 72 67 75 6d 65 | | Argume|
|00001f50| 6e 74 73 20 20 20 20 3a | 20 28 44 69 72 2e 41 72 |nts :| (Dir.Ar|
|00001f60| 72 61 79 24 28 29 2c 4d | 61 78 64 69 72 73 25 2c |ray$(),M|axdirs%,|
|00001f70| 44 72 69 76 65 24 2c 45 | 72 63 64 25 29 0d 0a 20 |Drive$,E|rcd%).. |
|00001f80| 20 20 20 20 20 20 20 20 | 20 54 79 70 65 20 20 20 | | Type |
|00001f90| 20 20 20 20 20 20 3a 20 | 44 4f 53 2f 53 79 73 74 | : |DOS/Syst|
|00001fa0| 65 6d 0d 0a 20 20 20 20 | 20 20 20 20 20 20 50 75 |em.. | Pu|
|00001fb0| 72 70 6f 73 65 20 20 20 | 20 20 20 3a 20 53 65 61 |rpose | : Sea|
|00001fc0| 72 63 68 65 73 20 61 6e | 64 20 72 65 74 75 72 6e |rches an|d return|
|00001fd0| 73 20 20 61 6c 6c 20 20 | 6f 66 20 74 68 65 20 61 |s all |of the a|
|00001fe0| 76 61 69 6c 61 62 6c 65 | 20 64 69 72 65 63 2d 0d |vailable| direc-.|
|00001ff0| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00002000| 20 20 20 20 20 20 20 20 | 20 20 74 6f 72 79 20 70 | | tory p|
|00002010| 61 74 68 73 20 6f 66 20 | 74 68 65 20 73 70 65 63 |aths of |the spec|
|00002020| 69 66 69 65 64 20 64 72 | 69 76 65 20 69 6e 20 61 |ified dr|ive in a|
|00002030| 6e 20 61 72 72 61 79 2e | 0d 0a 0d 0a 20 20 20 20 |n array.|.... |
|00002040| 20 20 20 20 20 20 44 65 | 73 63 72 69 70 74 69 6f | De|scriptio|
|00002050| 6e 20 20 3a 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |n :....| |
|00002060| 20 20 44 69 72 2e 41 72 | 72 61 79 24 28 30 29 2c | Dir.Ar|ray$(0),|
|00002070| 20 20 54 68 69 73 20 20 | 69 73 20 20 77 68 65 72 | This |is wher|
|00002080| 65 20 74 68 65 20 64 69 | 72 65 63 74 6f 72 79 20 |e the di|rectory |
|00002090| 6e 61 6d 65 73 20 66 6f | 75 6e 64 20 77 69 6c 6c |names fo|und will|
|000020a0| 20 62 65 0d 0a 20 20 20 | 20 20 20 20 20 20 20 73 | be.. | s|
|000020b0| 61 76 65 64 2e 20 20 45 | 61 63 68 20 65 6c 65 6d |aved. E|ach elem|
|000020c0| 65 6e 74 20 69 6e 20 74 | 68 69 73 20 4f 4e 45 20 |ent in t|his ONE |
|000020d0| 64 69 6d 65 6e 73 69 6f | 6e 61 6c 20 61 72 72 61 |dimensio|nal arra|
|000020e0| 79 20 6d 75 73 74 20 62 | 65 20 73 65 74 20 74 6f |y must b|e set to|
|000020f0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 73 6f 6d 65 |.. | some|
|00002100| 20 20 6c 65 6e 67 74 68 | 2e 20 20 41 4c 4c 44 49 | length|. ALLDI|
|00002110| 52 53 20 69 73 20 6e 6f | 74 20 76 65 72 79 20 70 |RS is no|t very p|
|00002120| 69 63 6b 79 20 61 62 6f | 75 74 20 74 68 65 20 6d |icky abo|ut the m|
|00002130| 69 6e 69 6d 75 6d 20 6c | 65 6e 67 74 68 0d 0a 20 |inimum l|ength.. |
|00002140| 20 20 20 20 20 20 20 20 | 20 62 75 74 20 69 66 20 | | but if |
|00002150| 69 74 20 65 76 65 72 20 | 66 69 6e 64 73 20 61 20 |it ever |finds a |
|00002160| 64 69 72 65 63 74 6f 72 | 79 20 70 61 74 68 20 74 |director|y path t|
|00002170| 68 61 74 20 77 69 6c 6c | 20 6e 6f 74 20 20 66 69 |hat will| not fi|
|00002180| 74 20 20 69 6e 20 20 74 | 68 65 0d 0a 20 20 20 20 |t in t|he.. |
|00002190| 20 20 20 20 20 20 73 70 | 61 63 65 20 20 70 72 6f | sp|ace pro|
|000021a0| 76 69 64 65 64 20 20 69 | 74 20 20 77 69 6c 6c 20 |vided i|t will |
|000021b0| 20 73 74 6f 70 20 61 6e | 64 20 72 65 74 75 72 6e | stop an|d return|
|000021c0| 20 77 69 74 68 20 61 6e | 20 60 6f 75 74 20 6f 66 | with an| `out of|
|000021d0| 20 73 74 72 69 6e 67 0d | 0a 20 20 20 20 20 20 20 | string.|. |
|000021e0| 20 20 20 73 70 61 63 65 | 20 63 6f 6e 64 69 74 69 | space| conditi|
|000021f0| 6f 6e 27 2e 20 20 44 4f | 53 20 6c 69 6d 69 74 73 |on'. DO|S limits|
|00002200| 20 74 68 65 20 6d 61 78 | 69 6d 75 6d 20 6c 65 6e | the max|imum len|
|00002210| 67 74 68 20 6f 66 20 61 | 6e 79 20 64 69 72 65 63 |gth of a|ny direc|
|00002220| 74 6f 72 79 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |tory.. | |
|00002230| 70 61 74 68 20 20 74 6f | 20 20 36 34 20 63 68 61 |path to| 64 cha|
|00002240| 72 61 63 74 65 72 73 20 | 69 6e 63 6c 75 64 69 6e |racters |includin|
|00002250| 67 20 74 68 65 20 64 72 | 69 76 65 20 73 70 65 63 |g the dr|ive spec|
|00002260| 69 66 69 65 72 20 28 69 | 2e 65 2e 20 20 43 3a 29 |ifier (i|.e. C:)|
|00002270| 2c 0d 0a 20 20 20 20 20 | 20 20 20 20 20 73 6c 61 |,.. | sla|
|00002280| 73 68 65 73 20 61 6e 64 | 20 73 74 72 69 6e 67 20 |shes and| string |
|00002290| 74 65 72 6d 69 6e 61 74 | 6f 72 20 28 41 53 43 49 |terminat|or (ASCI|
|000022a0| 49 20 30 29 20 53 6f 2c | 20 20 79 6f 75 20 77 69 |I 0) So,| you wi|
|000022b0| 6c 6c 20 6e 65 76 65 72 | 20 20 6e 65 65 64 0d 0a |ll never| need..|
|000022c0| 20 20 20 20 20 20 20 20 | 20 20 6d 6f 72 65 20 74 | | more t|
|000022d0| 68 61 6e 20 61 20 73 74 | 72 69 6e 67 20 6c 65 6e |han a st|ring len|
|000022e0| 67 74 68 20 6f 66 20 36 | 34 20 63 68 61 72 61 63 |gth of 6|4 charac|
|000022f0| 74 65 72 73 20 70 65 72 | 20 65 6c 65 6d 65 6e 74 |ters per| element|
|00002300| 2e 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 4d |..... | M|
|00002310| 61 78 64 69 72 73 25 2c | 20 20 74 65 6c 6c 73 20 |axdirs%,| tells |
|00002320| 20 41 4c 4c 44 49 52 53 | 20 74 68 65 20 6e 75 6d | ALLDIRS| the num|
|00002330| 62 65 72 20 6f 66 20 65 | 6c 65 6d 65 6e 74 73 20 |ber of e|lements |
|00002340| 69 6e 20 44 69 72 2e 41 | 72 72 61 79 24 28 29 2e |in Dir.A|rray$().|
|00002350| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 49 66 20 41 |.. | If A|
|00002360| 4c 4c 44 49 52 53 20 66 | 69 6e 64 73 20 6d 6f 72 |LLDIRS f|inds mor|
|00002370| 65 20 64 69 72 65 63 74 | 6f 72 69 65 73 20 74 68 |e direct|ories th|
|00002380| 61 6e 20 20 73 70 61 63 | 65 20 20 69 73 20 20 70 |an spac|e is p|
|00002390| 72 6f 76 69 64 65 64 20 | 20 74 68 65 6e 0d 0a 20 |rovided | then.. |
|000023a0| 20 20 20 20 20 20 20 20 | 20 41 4c 4c 44 49 52 53 | | ALLDIRS|
|000023b0| 20 73 74 6f 70 73 20 61 | 6e 64 20 72 65 74 75 72 | stops a|nd retur|
|000023c0| 6e 73 20 77 69 74 68 20 | 61 20 60 4f 75 74 20 6f |ns with |a `Out o|
|000023d0| 66 20 73 74 72 69 6e 67 | 20 73 70 61 63 65 20 63 |f string| space c|
|000023e0| 6f 6e 64 69 74 69 6f 6e | 27 2e 0d 0a 20 20 20 20 |ondition|'... |
|000023f0| 20 20 20 20 20 20 55 70 | 6f 6e 20 20 72 65 74 75 | Up|on retu|
|00002400| 72 6e 20 20 66 72 6f 6d | 20 20 41 4c 4c 44 49 52 |rn from| ALLDIR|
|00002410| 53 2c 20 20 4d 61 78 64 | 69 72 73 25 3d 20 74 68 |S, Maxd|irs%= th|
|00002420| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 64 69 72 65 |e number| of dire|
|00002430| 63 74 6f 72 69 65 73 0d | 0a 20 20 20 20 20 20 20 |ctories.|. |
|00002440| 20 20 20 66 6f 75 6e 64 | 2e 0d 0a 0d 0a 20 20 20 | found|..... |
|00002450| 20 20 20 20 20 20 20 44 | 72 69 76 65 24 2c 20 20 | D|rive$, |
|00002460| 53 70 65 63 69 66 79 20 | 64 72 69 76 65 20 74 6f |Specify |drive to|
|00002470| 20 73 65 61 72 63 68 2e | 20 20 54 68 65 20 66 69 | search.| The fi|
|00002480| 72 73 74 20 20 63 68 61 | 72 61 63 74 65 72 20 20 |rst cha|racter |
|00002490| 69 6e 20 20 74 68 69 73 | 0d 0a 20 20 20 20 20 20 |in this|.. |
|000024a0| 20 20 20 20 73 74 72 69 | 6e 67 20 20 6d 75 73 74 | stri|ng must|
|000024b0| 20 20 73 70 65 63 69 66 | 79 20 20 74 68 65 20 64 | specif|y the d|
|000024c0| 72 69 76 65 20 6c 65 74 | 74 65 72 20 61 6c 6c 20 |rive let|ter all |
|000024d0| 6f 74 68 65 72 20 63 68 | 61 72 61 63 74 65 72 73 |other ch|aracters|
|000024e0| 2c 20 20 69 66 0d 0a 20 | 20 20 20 20 20 20 20 20 |, if.. | |
|000024f0| 20 61 6e 79 2c 20 20 61 | 72 65 20 69 67 6e 6f 72 | any, a|re ignor|
|00002500| 65 64 2e 20 20 28 41 4c | 4c 44 49 52 53 20 77 69 |ed. (AL|LDIRS wi|
|00002510| 6c 6c 20 4e 4f 54 20 63 | 6f 6e 76 65 72 74 20 74 |ll NOT c|onvert t|
|00002520| 68 65 20 64 72 69 76 65 | 20 6c 65 74 74 65 72 20 |he drive| letter |
|00002530| 74 6f 0d 0a 20 20 20 20 | 20 20 20 20 20 20 75 70 |to.. | up|
|00002540| 70 65 72 20 63 61 73 65 | 2c 20 79 6f 75 20 6d 61 |per case|, you ma|
|00002550| 79 20 68 61 76 65 20 74 | 6f 20 64 6f 20 69 74 20 |y have t|o do it |
|00002560| 73 65 70 61 72 61 74 65 | 6c 79 20 69 66 20 69 74 |separate|ly if it|
|00002570| 20 69 73 20 69 6d 70 6f | 72 74 61 6e 74 2e 29 0d | is impo|rtant.).|
|00002580| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 45 72 63 |... | Erc|
|00002590| 64 25 2c 20 20 6c 69 6b | 65 20 61 6c 6c 20 64 69 |d%, lik|e all di|
|000025a0| 73 6b 20 66 75 6e 63 74 | 69 6f 6e 73 2c 20 20 65 |sk funct|ions, e|
|000025b0| 72 72 6f 72 73 20 6d 61 | 79 20 6f 63 63 75 72 2e |rrors ma|y occur.|
|000025c0| 20 20 49 66 2c 20 20 45 | 72 63 64 25 3d 30 0d 0a | If, E|rcd%=0..|
|000025d0| 20 20 20 20 20 20 20 20 | 20 20 74 68 65 6e 20 65 | | then e|
|000025e0| 76 65 72 79 74 68 69 6e | 67 20 69 73 20 6f 2e 6b |verythin|g is o.k|
|000025f0| 2e 20 20 41 6e 20 65 72 | 72 6f 72 20 63 6f 64 65 |. An er|ror code|
|00002600| 20 6f 66 20 2d 31 20 3d | 20 44 72 69 76 65 20 73 | of -1 =| Drive s|
|00002610| 65 6c 65 63 74 65 64 20 | 20 69 73 0d 0a 20 20 20 |elected | is.. |
|00002620| 20 20 20 20 20 20 20 6e | 6f 74 20 76 61 6c 69 64 | n|ot valid|
|00002630| 2e 20 2d 32 20 3d 20 4f | 75 74 20 6f 66 20 53 74 |. -2 = O|ut of St|
|00002640| 72 69 6e 67 20 73 70 61 | 63 65 2e 0d 0a 0d 0a 20 |ring spa|ce..... |
|00002650| 20 20 20 20 20 20 20 20 | 20 45 78 61 6d 70 6c 65 | | Example|
|00002660| 3a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 44 69 6d |:.. | Dim|
|00002670| 20 64 69 72 2e 61 72 72 | 61 79 24 28 35 30 29 3a | dir.arr|ay$(50):|
|00002680| 66 6f 72 20 69 3d 30 20 | 74 6f 20 35 30 3a 64 69 |for i=0 |to 50:di|
|00002690| 72 24 28 69 29 3d 73 70 | 61 63 65 24 28 36 34 29 |r$(i)=sp|ace$(64)|
|000026a0| 3a 6e 65 78 74 3a 64 24 | 3d 22 43 3a 22 0d 0a 20 |:next:d$|="C:".. |
|000026b0| 20 20 20 20 20 20 20 20 | 20 65 72 63 64 25 3d 30 | | ercd%=0|
|000026c0| 3a 6d 61 78 25 3d 35 31 | 3a 63 61 6c 6c 20 61 6c |:max%=51|:call al|
|000026d0| 6c 64 69 72 73 28 64 69 | 72 2e 61 72 72 61 79 24 |ldirs(di|r.array$|
|000026e0| 28 30 29 2c 6d 61 78 25 | 2c 64 24 2c 65 72 63 64 |(0),max%|,d$,ercd|
|000026f0| 25 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 69 66 |%).. | if|
|00002700| 20 65 72 63 64 25 20 74 | 68 65 6e 20 70 72 69 6e | ercd% t|hen prin|
|00002710| 74 20 22 45 72 72 6f 72 | 20 3a 22 3b 65 72 63 64 |t "Error| :";ercd|
|00002720| 25 0d 0a 20 20 20 20 20 | 20 20 20 20 20 70 72 69 |%.. | pri|
|00002730| 6e 74 20 22 44 69 72 65 | 63 74 6f 72 69 65 73 20 |nt "Dire|ctories |
|00002740| 66 6f 75 6e 64 3a 22 0d | 0a 20 20 20 20 20 20 20 |found:".|. |
|00002750| 20 20 20 66 6f 72 20 69 | 3d 20 30 20 74 6f 20 6d | for i|= 0 to m|
|00002760| 61 78 25 3a 70 72 69 6e | 74 20 64 69 72 24 28 69 |ax%:prin|t dir$(i|
|00002770| 29 3a 6e 65 78 74 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |):next..|........|
|00002780| 0d 0a 0d 0a 0d 0a 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |........|........|
|00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027a0| 20 20 20 20 2d 2d 2d 20 | 42 41 53 44 4c 58 20 20 | --- |BASDLX |
|000027b0| 20 56 65 72 73 69 6f 6e | 20 31 2e 36 20 20 20 53 | Version| 1.6 S|
|000027c0| 65 70 74 65 6d 62 65 72 | 20 31 39 38 37 20 2d 2d |eptember| 1987 --|
|000027d0| 2d 0d 0a 0c 0d 0a 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |-.......|........|
|000027e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 42 41 53 | | BAS|
|000027f0| 44 4c 58 20 28 43 29 20 | 43 6f 70 79 72 69 67 68 |DLX (C) |Copyrigh|
|00002800| 74 20 31 39 38 36 2c 31 | 39 38 37 20 42 79 20 47 |t 1986,1|987 By G|
|00002810| 75 73 74 61 76 6f 20 48 | 2e 20 56 65 72 64 75 6e |ustavo H|. Verdun|
|00002820| 20 20 50 61 67 65 20 35 | 0d 0a 0d 0a 20 20 20 20 | Page 5|.... |
|00002830| 20 20 20 20 20 20 46 75 | 6e 63 74 69 6f 6e 20 4e | Fu|nction N|
|00002840| 61 6d 65 3a 20 41 4c 4c | 44 52 49 56 45 53 0d 0a |ame: ALL|DRIVES..|
|00002850| 20 20 20 20 20 20 20 20 | 20 20 41 72 67 75 6d 65 | | Argume|
|00002860| 6e 74 73 20 20 20 20 3a | 20 28 4e 75 6d 5f 6f 66 |nts :| (Num_of|
|00002870| 5f 64 72 69 76 65 73 29 | 0d 0a 20 20 20 20 20 20 |_drives)|.. |
|00002880| 20 20 20 20 54 79 70 65 | 20 20 20 20 20 20 20 20 | Type| |
|00002890| 20 3a 20 44 4f 53 2f 53 | 79 73 74 65 6d 0d 0a 20 | : DOS/S|ystem.. |
|000028a0| 20 20 20 20 20 20 20 20 | 20 50 75 72 70 6f 73 65 | | Purpose|
|000028b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3a 20 52 65 | | : Re|
|000028c0| 74 75 72 6e 73 20 20 74 | 68 65 20 74 6f 74 61 6c |turns t|he total|
|000028d0| 20 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 6f 67 69 | number| of logi|
|000028e0| 63 61 6c 20 64 72 69 76 | 65 73 0d 0a 20 20 20 20 |cal driv|es.. |
|000028f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002900| 20 20 20 20 20 28 44 69 | 73 6b 65 74 74 65 2c 20 | (Di|skette, |
|00002910| 46 69 78 65 64 2c 20 52 | 61 6d 2c 20 45 74 63 2e |Fixed, R|am, Etc.|
|00002920| 29 20 41 76 61 69 6c 61 | 62 6c 65 2e 0d 0a 0d 0a |) Availa|ble.....|
|00002930| 20 20 20 20 20 20 20 20 | 20 20 44 65 73 63 72 69 | | Descri|
|00002940| 70 74 69 6f 6e 20 20 3a | 0d 0a 20 20 20 20 20 20 |ption :|.. |
|00002950| 20 20 20 20 54 68 69 73 | 20 66 75 6e 63 74 69 6f | This| functio|
|00002960| 6e 20 77 69 6c 6c 20 72 | 65 74 75 72 6e 20 61 20 |n will r|eturn a |
|00002970| 6d 69 6e 69 6d 75 6d 20 | 6f 66 20 32 20 44 72 69 |minimum |of 2 Dri|
|00002980| 76 65 73 2c 20 20 73 69 | 6e 63 65 20 61 6e 79 20 |ves, si|nce any |
|00002990| 20 63 6f 6d 2d 0d 0a 20 | 20 20 20 20 20 20 20 20 | com-.. | |
|000029a0| 20 70 75 74 65 72 20 69 | 73 20 61 73 73 75 6d 65 | puter i|s assume|
|000029b0| 64 20 74 6f 20 68 61 76 | 65 20 74 68 65 20 6c 6f |d to hav|e the lo|
|000029c0| 67 69 63 61 6c 20 64 72 | 69 76 65 73 20 41 3a 20 |gical dr|ives A: |
|000029d0| 26 20 42 3a 20 45 76 65 | 6e 20 69 66 20 74 68 65 |& B: Eve|n if the|
|000029e0| 72 65 0d 0a 20 20 20 20 | 20 20 20 20 20 20 69 73 |re.. | is|
|000029f0| 20 6f 6e 6c 79 20 6f 6e | 65 20 70 68 79 73 69 63 | only on|e physic|
|00002a00| 61 6c 20 64 72 69 76 65 | 2e 0d 0a 0d 0a 20 20 20 |al drive|..... |
|00002a10| 20 20 20 20 20 20 20 45 | 78 61 6d 70 6c 65 3a 0d | E|xample:.|
|00002a20| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 64 72 76 |... | drv|
|00002a30| 73 25 3d 30 3a 63 61 6c | 6c 20 61 6c 6c 64 72 69 |s%=0:cal|l alldri|
|00002a40| 76 65 73 28 64 72 76 73 | 25 29 0d 0a 20 20 20 20 |ves(drvs|%).. |
|00002a50| 20 20 20 20 20 20 70 72 | 69 6e 74 20 22 59 6f 75 | pr|int "You|
|00002a60| 20 68 61 76 65 20 22 3b | 64 72 76 73 25 3b 22 20 | have ";|drvs%;" |
|00002a70| 64 72 69 76 65 73 20 61 | 76 61 69 6c 61 62 6c 65 |drives a|vailable|
|00002a80| 2e 22 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |.".... | |
|00002a90| 46 75 6e 63 74 69 6f 6e | 20 4e 61 6d 65 3a 20 41 |Function| Name: A|
|00002aa0| 4c 4c 46 49 4c 45 53 0d | 0a 20 20 20 20 20 20 20 |LLFILES.|. |
|00002ab0| 20 20 20 41 72 67 75 6d | 65 6e 74 73 20 20 20 20 | Argum|ents |
|00002ac0| 3a 20 28 73 65 61 72 63 | 68 24 2c 5b 66 69 6c 65 |: (searc|h$,[file|
|00002ad0| 5f 61 74 74 72 69 62 75 | 74 65 25 5d 2c 64 69 72 |_attribu|te%],dir|
|00002ae0| 24 28 29 2c 6d 61 78 5f | 65 6c 65 6d 25 2c 65 72 |$(),max_|elem%,er|
|00002af0| 63 64 25 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |cd%).. | |
|00002b00| 54 79 70 65 20 20 20 20 | 20 20 20 20 20 3a 20 44 |Type | : D|
|00002b10| 4f 53 2f 53 79 73 74 65 | 6d 0d 0a 20 20 20 20 20 |OS/Syste|m.. |
|00002b20| 20 20 20 20 20 50 75 72 | 70 6f 73 65 20 20 20 20 | Pur|pose |
|00002b30| 20 20 20 3a 20 53 63 61 | 6e 73 20 64 72 69 76 65 | : Sca|ns drive|
|00002b40| 20 20 61 6e 64 20 72 65 | 74 75 72 6e 73 20 74 68 | and re|turns th|
|00002b50| 65 20 73 70 65 63 69 66 | 69 65 64 20 66 69 6c 65 |e specif|ied file|
|00002b60| 73 20 69 6e 20 61 0d 0a | 20 20 20 20 20 20 20 20 |s in a..| |
|00002b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002b80| 20 73 74 72 69 6e 67 20 | 61 72 72 61 79 2e 0d 0a | string |array...|
|00002b90| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 44 65 73 63 |.. | Desc|
|00002ba0| 72 69 70 74 69 6f 6e 20 | 20 3a 0d 0a 20 20 20 20 |ription | :.. |
|00002bb0| 20 20 20 20 20 20 73 65 | 61 72 63 68 24 3a 20 54 | se|arch$: T|
|00002bc0| 68 69 73 20 73 70 65 63 | 69 66 69 65 73 20 74 68 |his spec|ifies th|
|00002bd0| 65 20 73 65 61 72 63 68 | 20 70 61 74 74 65 72 6e |e search| pattern|
|00002be0| 2e 20 20 69 66 20 53 65 | 61 72 63 68 24 20 3d 20 |. if Se|arch$ = |
|00002bf0| 22 22 20 74 68 65 6e 0d | 0a 20 20 20 20 20 20 20 |"" then.|. |
|00002c00| 20 20 20 74 68 65 20 64 | 65 66 61 75 6c 74 20 22 | the d|efault "|
|00002c10| 2a 2e 22 20 70 61 74 74 | 65 72 6e 20 69 73 20 75 |*." patt|ern is u|
|00002c20| 73 65 64 20 28 77 69 74 | 68 6f 75 74 20 74 68 65 |sed (wit|hout the|
|00002c30| 20 71 75 6f 74 65 73 29 | 2e 20 54 68 65 20 73 65 | quotes)|. The se|
|00002c40| 61 72 63 68 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |arch.. | |
|00002c50| 70 61 74 74 65 72 6e 20 | 6d 61 79 20 63 6f 6e 74 |pattern |may cont|
|00002c60| 61 69 6e 20 61 20 64 72 | 69 76 65 20 6c 65 74 74 |ain a dr|ive lett|
|00002c70| 65 72 2c 20 70 61 74 68 | 2c 20 66 69 6c 65 6e 61 |er, path|, filena|
|00002c80| 6d 65 20 61 6e 64 20 65 | 78 74 65 6e 73 69 6f 6e |me and e|xtension|
|00002c90| 2e 0d 0a 20 20 20 20 20 | 20 20 20 20 20 54 68 65 |... | The|
|00002ca0| 20 2a 20 61 6e 64 20 3f | 20 20 77 69 6c 64 63 61 | * and ?| wildca|
|00002cb0| 72 64 73 20 61 72 65 20 | 61 63 63 65 70 74 65 64 |rds are |accepted|
|00002cc0| 2e 20 54 68 65 20 73 65 | 61 72 63 68 24 20 6d 75 |. The se|arch$ mu|
|00002cd0| 73 74 20 65 6e 64 20 77 | 69 74 68 20 61 6e 0d 0a |st end w|ith an..|
|00002ce0| 20 20 20 20 20 20 20 20 | 20 20 41 53 43 49 49 20 | | ASCII |
|00002cf0| 30 20 63 68 61 72 61 63 | 74 65 72 2e 0d 0a 0d 0a |0 charac|ter.....|
|00002d00| 20 20 20 20 20 20 20 20 | 20 20 66 69 6c 65 5f 61 | | file_a|
|00002d10| 74 74 72 69 62 75 74 65 | 25 3a 20 54 68 69 73 20 |ttribute|%: This |
|00002d20| 73 70 65 63 69 66 69 65 | 73 20 74 68 65 20 61 74 |specifie|s the at|
|00002d30| 74 72 69 62 75 74 65 20 | 6f 66 20 74 68 65 20 66 |tribute |of the f|
|00002d40| 69 6c 65 73 20 74 6f 20 | 20 62 65 0d 0a 20 20 20 |iles to | be.. |
|00002d50| 20 20 20 20 20 20 20 73 | 65 61 72 63 68 65 64 20 | s|earched |
|00002d60| 66 6f 72 2e 20 20 53 65 | 65 3a 20 22 46 69 6c 65 |for. Se|e: "File|
|00002d70| 20 41 74 74 72 69 62 75 | 74 65 73 22 20 61 74 20 | Attribu|tes" at |
|00002d80| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 69 73 20 |the end |of this |
|00002d90| 64 6f 63 75 6d 65 6e 2d | 0d 0a 20 20 20 20 20 20 |documen-|.. |
|00002da0| 20 20 20 20 74 61 74 69 | 6f 6e 20 66 6f 72 20 61 | tati|on for a|
|00002db0| 20 64 65 74 61 69 6c 65 | 64 20 65 78 70 6c 61 6e | detaile|d explan|
|00002dc0| 61 74 69 6f 6e 2e 0d 0a | 0d 0a 20 20 20 20 20 20 |ation...|.. |
|00002dd0| 20 20 20 20 64 69 72 24 | 28 29 3a 20 54 68 69 73 | dir$|(): This|
|00002de0| 20 69 73 20 74 68 65 20 | 66 69 72 73 74 20 61 72 | is the |first ar|
|00002df0| 72 61 79 20 65 6c 65 6d | 65 6e 74 20 77 68 65 72 |ray elem|ent wher|
|00002e00| 65 20 6d 61 74 63 68 65 | 64 20 66 69 6c 65 73 20 |e matche|d files |
|00002e10| 20 77 69 6c 6c 0d 0a 20 | 20 20 20 20 20 20 20 20 | will.. | |
|00002e20| 20 62 65 20 20 73 74 6f | 72 65 64 2e 20 20 4d 61 | be sto|red. Ma|
|00002e30| 6b 65 20 73 75 72 65 20 | 74 68 61 74 20 65 76 65 |ke sure |that eve|
|00002e40| 72 79 20 65 6c 65 6d 65 | 6e 74 20 69 6e 20 74 68 |ry eleme|nt in th|
|00002e50| 69 73 20 6f 6e 65 2d 64 | 69 6d 65 6e 73 69 6f 6e |is one-d|imension|
|00002e60| 61 6c 0d 0a 20 20 20 20 | 20 20 20 20 20 20 61 72 |al.. | ar|
|00002e70| 72 61 79 20 69 73 20 6f | 66 20 61 20 6d 69 6e 69 |ray is o|f a mini|
|00002e80| 6d 75 6d 20 6c 65 6e 67 | 74 68 20 6f 66 20 31 32 |mum leng|th of 12|
|00002e90| 2e 0d 0a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 6d |..... | m|
|00002ea0| 61 78 5f 65 6c 65 6d 25 | 3a 20 57 68 65 6e 20 63 |ax_elem%|: When c|
|00002eb0| 61 6c 6c 69 6e 67 20 74 | 68 65 20 66 75 6e 63 74 |alling t|he funct|
|00002ec0| 69 6f 6e 20 74 68 69 73 | 20 6e 75 6d 62 65 72 20 |ion this| number |
|00002ed0| 6d 75 73 74 20 62 65 20 | 20 73 65 74 20 20 74 6f |must be | set to|
|00002ee0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 74 68 65 20 |.. | the |
|00002ef0| 6d 61 78 69 6d 75 6d 20 | 6e 75 6d 62 65 72 20 6f |maximum |number o|
|00002f00| 66 20 61 72 72 61 79 20 | 65 6c 65 6d 65 6e 74 73 |f array |elements|
|00002f10| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 6f 20 41 4c | availab|le to AL|
|00002f20| 4c 46 49 4c 45 53 2e 20 | 20 55 70 6f 6e 0d 0a 20 |LFILES. | Upon.. |
|00002f30| 20 20 20 20 20 20 20 20 | 20 72 65 74 75 72 6e 20 | | return |
|00002f40| 66 72 6f 6d 20 41 4c 4c | 46 49 4c 45 53 20 74 68 |from ALL|FILES th|
|00002f50| 69 73 20 76 61 72 69 61 | 62 6c 65 20 77 69 6c 6c |is varia|ble will|
|00002f60| 20 20 63 6f 6e 74 61 69 | 6e 20 20 74 68 65 20 20 | contai|n the |
|00002f70| 6e 75 6d 62 65 72 20 20 | 6f 66 0d 0a 20 20 20 20 |number |of.. |
|00002f80| 20 20 20 20 20 20 66 69 | 6c 65 73 20 66 6f 75 6e | fi|les foun|
|00002f90| 64 2e 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |d..... | |
|00002fa0| 65 72 63 64 25 3a 20 20 | 49 66 20 20 65 72 63 64 |ercd%: |If ercd|
|00002fb0| 25 3d 30 20 74 68 65 6e | 20 6e 6f 20 65 72 72 6f |%=0 then| no erro|
|00002fc0| 72 73 20 68 61 76 65 20 | 6f 63 63 75 72 72 65 64 |rs have |occurred|
|00002fd0| 2e 20 20 28 4e 6f 74 65 | 3a 20 41 20 66 69 6c 65 |. (Note|: A file|
|00002fe0| 73 0d 0a 20 20 20 20 20 | 20 20 20 20 20 6e 6f 74 |s.. | not|
|00002ff0| 20 66 6f 75 6e 64 20 65 | 72 72 6f 72 20 69 73 20 | found e|rror is |
|00003000| 6f 6e 6c 79 20 72 65 63 | 6f 72 64 65 64 20 62 79 |only rec|orded by|
|00003010| 20 6d 61 78 5f 65 6c 65 | 6d 25 3d 30 29 0d 0a 20 | max_ele|m%=0).. |
|00003020| 20 20 20 20 20 20 20 20 | 20 2d 31 20 20 20 20 20 | | -1 |
|00003030| 20 20 20 42 61 64 20 44 | 4f 53 20 56 65 72 73 69 | Bad D|OS Versi|
|00003040| 6f 6e 0d 0a 20 20 20 20 | 20 20 20 20 20 20 2d 32 |on.. | -2|
|00003050| 20 20 20 20 20 20 20 20 | 4f 75 74 20 6f 66 20 73 | |Out of s|
|00003060| 74 72 69 6e 67 20 73 70 | 61 63 65 20 28 45 69 74 |tring sp|ace (Eit|
|00003070| 68 65 72 20 74 68 65 20 | 65 6c 65 6d 65 6e 74 73 |her the |elements|
|00003080| 20 69 6e 20 64 69 72 24 | 28 29 20 20 61 72 65 0d | in dir$|() are.|
|00003090| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000030a0| 20 20 20 20 20 6e 6f 74 | 20 20 73 65 74 20 20 74 | not| set t|
|000030b0| 6f 20 20 74 68 65 20 20 | 6d 69 6e 69 6d 75 6d 20 |o the |minimum |
|000030c0| 20 73 74 72 69 6e 67 20 | 20 6c 65 6e 67 74 68 20 | string | length |
|000030d0| 6f 66 20 31 33 20 6f 72 | 20 6e 6f 74 0d 0a 20 20 |of 13 or| not.. |
|000030e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000030f0| 20 20 65 6e 6f 75 67 68 | 20 65 6c 65 6d 65 6e 74 | enough| element|
|00003100| 73 2e 29 0d 0a 0d 0a 0d | 0a 0d 0a 20 20 20 20 20 |s.).....|... |
|00003110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2d | | -|
|00003120| 2d 2d 20 42 41 53 44 4c | 58 20 20 20 56 65 72 73 |-- BASDL|X Vers|
|00003130| 69 6f 6e 20 31 2e 36 20 | 20 20 53 65 70 74 65 6d |ion 1.6 | Septem|
|00003140| 62 65 72 20 31 39 38 37 | 20 2d 2d 2d 0d 0a 0c 0d |ber 1987| ---....|
|00003150| 0a 0d 0a 0d 0a 0d 0a 0d | 0a 0d 0a 20 20 20 20 20 |........|... |
|00003160| 20 20 20 20 20 20 20 20 | 42 41 53 44 4c 58 20 28 | |BASDLX (|
|00003170| 43 29 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 38 |C) Copyr|ight 198|
|00003180| 36 2c 31 39 38 37 20 42 | 79 20 47 75 73 74 61 76 |6,1987 B|y Gustav|
|00003190| 6f 20 48 2e 20 56 65 72 | 64 75 6e 20 20 50 61 67 |o H. Ver|dun Pag|
|000031a0| 65 20 36 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |e 6.... | |
|000031b0| 20 46 75 6e 63 74 69 6f | 6e 20 4e 61 6d 65 3a 20 | Functio|n Name: |
|000031c0| 41 4c 4c 46 49 4c 45 53 | 20 28 43 6f 6e 74 69 6e |ALLFILES| (Contin|
|000031d0| 75 65 64 29 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |ued)....| |
|000031e0| 20 20 45 78 61 6d 70 6c | 65 3a 0d 0a 0d 0a 20 20 | Exampl|e:.... |
|000031f0| 20 20 20 20 20 20 20 20 | 4f 70 74 69 6f 6e 20 42 | |Option B|
|00003200| 61 73 65 20 30 0d 0a 20 | 20 20 20 20 20 20 20 20 |ase 0.. | |
|00003210| 20 64 69 6d 20 64 69 72 | 24 28 31 30 30 29 0d 0a | dim dir|$(100)..|
|00003220| 20 20 20 20 20 20 20 20 | 20 20 2e 0d 0a 20 20 20 | | ... |
|00003230| 20 20 20 20 20 20 20 66 | 6f 72 20 69 25 3d 30 20 | f|or i%=0 |
|00003240| 74 6f 20 31 30 30 3a 64 | 69 72 24 28 69 25 29 3d |to 100:d|ir$(i%)=|
|00003250| 73 70 61 63 65 24 28 31 | 33 29 3a 6e 65 78 74 0d |space$(1|3):next.|
|00003260| 0a 20 20 20 20 20 20 20 | 20 20 20 73 65 61 72 63 |. | searc|
|00003270| 68 24 3d 22 22 3a 61 74 | 74 72 25 3d 30 3a 66 69 |h$="":at|tr%=0:fi|
|00003280| 6c 65 73 25 3d 31 30 31 | 0d 0a 20 20 20 20 20 20 |les%=101|.. |
|00003290| 20 20 20 20 63 61 6c 6c | 20 61 6c 6c 66 69 6c 65 | call| allfile|
|000032a0| 73 28 73 65 61 72 63 68 | 24 2c 61 74 74 72 25 2c |s(search|$,attr%,|
|000032b0| 64 69 72 24 28 30 29 2c | 66 69 6c 65 73 25 2c 65 |dir$(0),|files%,e|
|000032c0| 72 63 64 25 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |rcd%).. | |
|000032d0| 20 69 66 20 65 72 63 64 | 25 20 74 68 65 6e 20 70 | if ercd|% then p|
|000032e0| 72 69 6e 74 20 22 44 69 | 72 65 63 74 6f 72 79 20 |rint "Di|rectory |
|000032f0| 73 69 7a 65 20 65 78 63 | 65 65 64 65 64 20 70 72 |size exc|eeded pr|
|00003300| 6f 67 72 61 6d 20 6c 69 | 6d 69 74 73 22 3a 65 6e |ogram li|mits":en|
|00003310| 64 0d 0a 20 20 20 20 20 | 20 20 20 20 20 66 6f 72 |d.. | for|
|00003320| 20 69 25 3d 30 20 74 6f | 20 66 69 6c 65 73 25 2d | i%=0 to| files%-|
|00003330| 31 3a 70 72 69 6e 74 20 | 64 69 72 24 28 69 25 29 |1:print |dir$(i%)|
|00003340| 3a 6e 65 78 74 0d 0a 0d | 0a 0d 0a 20 20 20 20 20 |:next...|... |
|00003350| 20 20 20 20 20 46 75 6e | 63 74 69 6f 6e 20 4e 61 | Fun|ction Na|
|00003360| 6d 65 3a 20 42 4f 58 0d | 0a 20 20 20 20 20 20 20 |me: BOX.|. |
|00003370| 20 20 20 41 72 67 75 6d | 65 6e 74 73 20 20 20 20 | Argum|ents |
|00003380| 3a 20 28 5b 77 69 64 74 | 68 25 5d 2c 5b 68 65 69 |: ([widt|h%],[hei|
|00003390| 67 68 74 25 5d 2c 5b 46 | 52 41 4d 45 24 5d 2c 5b |ght%],[F|RAME$],[|
|000033a0| 63 6f 6c 6f 72 25 5d 2c | 5b 6d 6f 64 65 25 5d 29 |color%],|[mode%])|
|000033b0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 54 79 70 65 |.. | Type|
|000033c0| 20 20 20 20 20 20 20 20 | 20 3a 20 69 6e 74 65 67 | | : integ|
|000033d0| 65 72 20 61 72 72 61 79 | 20 73 65 72 76 69 63 65 |er array| service|
|000033e0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 50 75 72 70 |.. | Purp|
|000033f0| 6f 73 65 20 20 20 20 20 | 20 3a 20 44 72 61 77 73 |ose | : Draws|
|00003400| 20 61 20 62 6f 78 20 75 | 73 69 6e 67 20 74 68 65 | a box u|sing the|
|00003410| 20 73 75 70 70 6c 69 65 | 64 20 61 72 67 75 6d 65 | supplie|d argume|
|00003420| 6e 74 73 2e 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |nts.....| |
|00003430| 20 20 44 65 73 63 72 69 | 70 74 69 6f 6e 20 20 3a | Descri|ption :|
|00003440| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 5b 77 69 64 |.. | [wid|
|00003450| 74 68 25 5d 20 26 20 5b | 68 65 69 67 68 74 25 5d |th%] & [|height%]|
|00003460| 20 3a 20 20 20 41 6c 6c | 20 64 69 6d 65 6e 73 69 | : All| dimensi|
|00003470| 6f 6e 73 20 61 72 65 20 | 69 6e 74 65 72 6e 61 6c |ons are |internal|
|00003480| 2e 20 20 54 68 69 73 20 | 66 75 6e 63 2d 0d 0a 20 |. This |func-.. |
|00003490| 20 20 20 20 20 20 20 20 | 20 74 69 6f 6e 20 20 75 | | tion u|
|000034a0| 73 65 73 20 20 74 68 65 | 20 20 63 75 72 72 65 6e |ses the| curren|
|000034b0| 74 20 20 63 75 72 73 6f | 72 20 6c 6f 63 61 74 69 |t curso|r locati|
|000034c0| 6f 6e 20 61 73 20 74 68 | 65 20 74 6f 70 20 72 69 |on as th|e top ri|
|000034d0| 67 68 74 20 63 6f 72 6e | 65 72 0d 0a 20 20 20 20 |ght corn|er.. |
|000034e0| 20 20 20 20 20 20 28 66 | 72 61 6d 65 29 20 6f 66 | (f|rame) of|
|000034f0| 20 74 68 65 20 62 6f 78 | 2e 0d 0a 0d 0a 20 20 20 | the box|..... |
|00003500| 20 20 20 20 20 20 20 5b | 46 52 41 4d 45 25 5d 20 | [|FRAME%] |
|00003510| 53 65 65 20 44 6f 63 75 | 6d 65 6e 74 61 74 69 6f |See Docu|mentatio|
|00003520| 6e 20 73 75 70 70 6c 65 | 6d 65 6e 74 20 66 6f 72 |n supple|ment for|
|00003530| 20 61 20 63 6f 6d 70 6c | 65 74 65 20 20 64 65 73 | a compl|ete des|
|00003540| 63 72 69 70 74 69 6f 6e | 0d 0a 20 20 20 20 20 20 |cription|.. |
|00003550| 20 20 20 20 6f 66 20 74 | 68 65 20 5b 46 52 41 4d | of t|he [FRAM|
|00003560| 45 25 5d 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |E%].... | |
|00003570| 20 5b 63 6f 6c 6f 72 25 | 5d 2c 20 68 65 72 65 2c | [color%|], here,|
|00003580| 20 79 6f 75 20 6d 61 79 | 20 73 70 65 63 69 66 79 | you may| specify|
|00003590| 20 74 68 65 20 63 6f 6c | 6f 72 20 61 74 74 72 69 | the col|or attri|
|000035a0| 62 75 74 65 20 74 68 61 | 74 20 42 4f 58 20 77 69 |bute tha|t BOX wi|
|000035b0| 6c 6c 0d 0a 20 20 20 20 | 20 20 20 20 20 20 75 73 |ll.. | us|
|000035c0| 65 2e 20 20 20 54 68 65 | 20 20 20 66 6f 72 6d 75 |e. The| formu|
|000035d0| 6c 61 20 20 20 66 6f 72 | 20 20 20 74 68 65 20 20 |la for| the |
|000035e0| 20 63 6f 6c 6f 72 20 20 | 76 61 6c 75 65 20 20 69 | color |value i|
|000035f0| 73 20 20 61 73 20 20 66 | 6f 6c 6c 6f 77 73 3a 0d |s as f|ollows:.|
|00003600| 0a 20 20 20 20 20 20 20 | 20 20 20 63 6f 6c 6f 72 |. | color|
|00003610| 25 3d 28 42 41 43 4b 47 | 52 4f 55 4e 44 20 61 6e |%=(BACKG|ROUND an|
|00003620| 64 20 37 29 2a 31 36 2b | 46 4f 52 45 47 52 4f 55 |d 7)*16+|FOREGROU|
|00003630| 4e 44 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ND.... | |
|00003640| 5b 6d 6f 64 65 25 5d 20 | 3a 0d 0a 0d 0a 20 20 20 |[mode%] |:.... |
|00003650| 20 20 20 20 20 20 20 20 | 20 30 20 20 20 20 20 20 | | 0 |
|00003660| 20 4e 6f 20 47 72 6f 77 | 2c 20 60 42 6f 78 65 73 | No Grow|, `Boxes|
|00003670| 27 20 46 6c 61 73 68 20 | 6f 6e 20 73 63 72 65 65 |' Flash |on scree|
|00003680| 6e 2e 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |n... | |
|00003690| 31 20 20 20 20 20 20 20 | 47 72 6f 77 20 46 72 6f |1 |Grow Fro|
|000036a0| 6d 20 43 65 6e 74 65 72 | 20 6f 75 74 2e 0d 0a 20 |m Center| out... |
|000036b0| 20 20 20 20 20 20 20 20 | 20 20 20 32 20 20 20 20 | | 2 |
|000036c0| 20 20 20 47 72 6f 77 20 | 46 72 6f 6d 20 54 6f 70 | Grow |From Top|
|000036d0| 20 52 69 67 68 74 20 74 | 6f 20 42 6f 74 74 6f 6d | Right t|o Bottom|
|000036e0| 20 4c 65 66 74 0d 0a 20 | 20 20 20 20 20 20 20 20 | Left.. | |
|000036f0| 20 20 20 33 20 20 20 20 | 20 20 20 47 72 6f 77 20 | 3 | Grow |
|00003700| 46 72 6f 6d 20 54 6f 70 | 20 4c 65 66 74 20 74 6f |From Top| Left to|
|00003710| 20 42 6f 74 74 6f 6d 20 | 52 69 67 68 74 2e 0d 0a | Bottom |Right...|
|00003720| 20 20 20 20 20 20 20 20 | 20 20 20 20 34 20 20 20 | | 4 |
|00003730| 20 20 20 20 47 72 6f 77 | 20 46 72 6f 6d 20 42 6f | Grow| From Bo|
|00003740| 74 74 6f 6d 20 4c 65 66 | 74 20 74 6f 20 54 6f 70 |ttom Lef|t to Top|
|00003750| 20 52 69 67 68 74 2e 0d | 0a 20 20 20 20 20 20 20 | Right..|. |
|00003760| 20 20 20 20 20 35 20 20 | 20 20 20 20 20 47 72 6f | 5 | Gro|
|00003770| 77 20 46 72 6f 6d 20 42 | 6f 74 74 6f 6d 20 52 69 |w From B|ottom Ri|
|00003780| 67 68 74 20 74 6f 20 54 | 6f 70 20 4c 65 66 74 2e |ght to T|op Left.|
|00003790| 0d 0a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 45 78 |.... | Ex|
|000037a0| 61 6d 70 6c 65 3a 0d 0a | 0d 0a 20 20 20 20 20 20 |ample:..|.. |
|000037b0| 20 20 20 20 6c 6f 63 61 | 74 65 20 31 2c 31 0d 0a | loca|te 1,1..|
|000037c0| 20 20 20 20 20 20 20 20 | 20 20 63 61 6c 6c 20 62 | | call b|
|000037d0| 6f 78 20 28 37 38 2c 32 | 33 2c 46 52 41 4d 45 24 |ox (78,2|3,FRAME$|
|000037e0| 2c 37 2c 31 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |,7,1).. | |
|000037f0| 20 27 72 65 6d 20 74 68 | 69 73 20 77 69 6c 6c 20 | 'rem th|is will |
|00003800| 64 72 61 77 20 61 20 62 | 6f 78 20 61 72 6f 75 6e |draw a b|ox aroun|
|00003810| 64 20 74 68 65 20 65 6e | 74 69 72 65 20 73 63 72 |d the en|tire scr|
|00003820| 65 65 6e 2e 0d 0a 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |een.....|........|
|00003830| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00003840| 20 20 20 20 20 20 2d 2d | 2d 20 42 41 53 44 4c 58 | --|- BASDLX|
|00003850| 20 20 20 56 65 72 73 69 | 6f 6e 20 31 2e 36 20 20 | Versi|on 1.6 |
|00003860| 20 53 65 70 74 65 6d 62 | 65 72 20 31 39 38 37 20 | Septemb|er 1987 |
|00003870| 2d 2d 2d 0d 0a 0c 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |---.....|........|
|00003880| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 42 |.. | B|
|00003890| 41 53 44 4c 58 20 28 43 | 29 20 43 6f 70 79 72 69 |ASDLX (C|) Copyri|
|000038a0| 67 68 74 20 31 39 38 36 | 2c 31 39 38 37 20 42 79 |ght 1986|,1987 By|
|000038b0| 20 47 75 73 74 61 76 6f | 20 48 2e 20 56 65 72 64 | Gustavo| H. Verd|
|000038c0| 75 6e 20 20 50 61 67 65 | 20 37 0d 0a 0d 0a 20 20 |un Page| 7.... |
|000038d0| 20 20 20 20 20 20 20 20 | 46 75 6e 63 74 69 6f 6e | |Function|
|000038e0| 20 4e 61 6d 65 3a 20 42 | 53 4f 52 54 4e 0d 0a 20 | Name: B|SORTN.. |
|000038f0| 20 20 20 20 20 20 20 20 | 20 41 72 67 75 6d 65 6e | | Argumen|
|00003900| 74 73 20 20 20 20 3a 20 | 28 4e 75 6d 5f 6f 66 5f |ts : |(Num_of_|
|00003910| 65 6c 65 6d 65 6e 74 73 | 2c 49 6e 74 65 67 65 72 |elements|,Integer|
|00003920| 5f 61 72 72 61 79 25 28 | 73 74 61 72 74 29 29 0d |_array%(|start)).|
|00003930| 0a 20 20 20 20 20 20 20 | 20 20 20 54 79 70 65 20 |. | Type |
|00003940| 20 20 20 20 20 20 20 20 | 3a 20 69 6e 74 65 67 65 | |: intege|
|00003950| 72 20 61 72 72 61 79 20 | 73 65 72 76 69 63 65 0d |r array |service.|
|00003960| 0a 20 20 20 20 20 20 20 | 20 20 20 50 75 72 70 6f |. | Purpo|
|00003970| 73 65 20 20 20 20 20 20 | 3a 20 53 6f 72 74 73 20 |se |: Sorts |
|00003980| 61 6e 20 69 6e 74 65 67 | 65 72 20 61 72 72 61 79 |an integ|er array|
|00003990| 20 69 6e 20 61 73 63 65 | 6e 64 69 6e 67 20 6f 72 | in asce|nding or|
|000039a0| 64 65 72 20 77 69 74 68 | 0d 0a 20 20 20 20 20 20 |der with|.. |
|000039b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000039c0| 20 20 20 6e 65 67 61 74 | 69 76 65 20 6e 75 6d 62 | negat|ive numb|
|000039d0| 65 72 73 20 61 70 70 65 | 61 72 69 6e 67 20 61 74 |ers appe|aring at|
|000039e0| 20 74 68 65 20 65 6e 64 | 20 20 69 6e 0d 0a 20 20 | the end| in.. |
|000039f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003a00| 20 20 20 20 20 20 20 61 | 73 63 65 6e 64 69 6e 67 | a|scending|
|00003a10| 20 6f 72 64 65 72 2e 0d | 0a 0d 0a 20 20 20 20 20 | order..|... |
|00003a20| 20 20 20 20 20 44 65 73 | 63 72 69 70 74 69 6f 6e | Des|cription|
|00003a30| 3a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 49 6e 74 |:.. | Int|
|00003a40| 65 67 65 72 20 76 61 72 | 69 61 62 6c 65 73 20 69 |eger var|iables i|
|00003a50| 6e 20 42 41 53 49 43 20 | 63 61 6e 20 63 6f 6e 74 |n BASIC |can cont|
|00003a60| 61 69 6e 20 20 6e 75 6d | 62 65 72 73 20 20 62 65 |ain num|bers be|
|00003a70| 74 77 65 65 6e 20 20 2d | 33 32 2c 37 36 38 0d 0a |tween -|32,768..|
|00003a80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 | | a|
|00003a90| 6e 64 20 33 32 2c 37 36 | 37 2e 20 54 68 69 73 20 |nd 32,76|7. This |
|00003aa0| 66 75 6e 63 74 69 6f 6e | 20 64 6f 65 73 20 6e 6f |function| does no|
|00003ab0| 74 20 64 69 73 74 69 6e | 67 75 69 73 68 20 62 65 |t distin|guish be|
|00003ac0| 74 77 65 65 6e 20 6e 65 | 67 61 2d 0d 0a 20 20 20 |tween ne|ga-.. |
|00003ad0| 20 20 20 20 20 20 20 20 | 20 20 20 20 74 69 76 65 | | tive|
|00003ae0| 20 20 6f 72 20 70 6f 73 | 69 74 69 76 65 20 6e 75 | or pos|itive nu|
|00003af0| 6d 62 65 72 73 2e 20 20 | 49 74 20 77 69 6c 6c 20 |mbers. |It will |
|00003b00| 73 6f 72 74 20 74 68 65 | 20 65 6c 65 6d 65 6e 74 |sort the| element|
|00003b10| 73 20 69 6e 20 61 73 2d | 0d 0a 20 20 20 20 20 20 |s in as-|.. |
|00003b20| 20 20 20 20 20 20 20 20 | 20 63 65 6e 64 69 6e 67 | | cending|
|00003b30| 20 6f 72 64 65 72 20 77 | 69 74 68 20 61 6c 6c 20 | order w|ith all |
|00003b40| 74 68 65 20 6e 65 67 61 | 74 69 76 65 20 20 6e 75 |the nega|tive nu|
|00003b50| 6d 62 65 72 73 20 20 28 | 69 66 20 20 65 78 69 73 |mbers (|if exis|
|00003b60| 74 69 6e 67 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |ting).. | |
|00003b70| 20 20 20 20 20 20 61 70 | 70 65 61 72 69 6e 67 20 | ap|pearing |
|00003b80| 20 61 66 74 65 72 20 20 | 74 68 65 20 20 70 6f 73 | after |the pos|
|00003b90| 69 74 69 76 65 20 20 6e | 75 6d 62 65 72 73 20 69 |itive n|umbers i|
|00003ba0| 6e 20 61 73 63 65 6e 64 | 69 6e 67 20 6f 72 64 65 |n ascend|ing orde|
|00003bb0| 72 2e 0d 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |r... | |
|00003bc0| 20 20 20 4d 61 6b 65 20 | 73 75 72 65 20 74 68 61 | Make |sure tha|
|00003bd0| 74 20 74 68 65 20 61 72 | 72 61 79 20 69 73 20 6f |t the ar|ray is o|
|00003be0| 66 20 74 79 70 65 20 20 | 69 6e 74 65 67 65 72 2e |f type |integer.|
|00003bf0| 20 20 55 6e 70 72 65 64 | 69 63 74 61 62 6c 65 0d | Unpred|ictable.|
|00003c00| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003c10| 72 65 73 75 6c 74 73 20 | 6d 61 79 20 6f 63 63 75 |results |may occu|
|00003c20| 72 20 69 66 20 6e 6f 74 | 21 0d 0a 0d 0a 20 20 20 |r if not|!.... |
|00003c30| 20 20 20 20 20 20 20 45 | 78 61 6d 70 6c 65 3a 0d | E|xample:.|
|00003c40| 0a 20 20 20 20 20 20 20 | 20 20 20 64 69 6d 20 61 |. | dim a|
|00003c50| 25 28 33 30 30 29 3a 70 | 72 69 6e 74 20 22 41 72 |%(300):p|rint "Ar|
|00003c60| 72 61 79 20 42 65 66 6f | 72 65 20 73 6f 72 74 3a |ray Befo|re sort:|
|00003c70| 22 0d 0a 20 20 20 20 20 | 20 20 20 20 20 66 6f 72 |".. | for|
|00003c80| 20 69 25 3d 30 20 74 6f | 20 33 30 30 3a 61 25 28 | i%=0 to| 300:a%(|
|00003c90| 69 25 29 3d 69 6e 74 28 | 72 6e 64 28 31 29 2a 33 |i%)=int(|rnd(1)*3|
|00003ca0| 30 30 30 30 29 3a 70 72 | 69 6e 74 20 61 25 28 69 |0000):pr|int a%(i|
|00003cb0| 25 29 2c 3a 6e 65 78 74 | 0d 0a 20 20 20 20 20 20 |%),:next|.. |
|00003cc0| 20 20 20 20 65 6e 75 6d | 25 3d 33 30 31 3a 63 61 | enum|%=301:ca|
|00003cd0| 6c 6c 20 62 73 6f 72 74 | 6e 28 65 6e 75 6d 25 2c |ll bsort|n(enum%,|
|00003ce0| 61 25 28 30 29 29 0d 0a | 20 20 20 20 20 20 20 20 |a%(0))..| |
|00003cf0| 20 20 72 65 6d 20 65 6e | 75 6d 25 3d 33 30 31 20 | rem en|um%=301 |
|00003d00| 62 65 63 61 75 73 65 20 | 74 68 65 72 65 20 61 72 |because |there ar|
|00003d10| 65 20 33 30 31 20 65 6c | 65 6d 65 6e 74 73 20 69 |e 301 el|ements i|
|00003d20| 6e 20 74 68 65 20 61 72 | 72 61 79 20 28 30 2d 33 |n the ar|ray (0-3|
|00003d30| 30 30 29 0d 0a 20 20 20 | 20 20 20 20 20 20 20 20 |00).. | |
|00003d40| 20 20 20 20 70 72 69 6e | 74 20 22 41 72 72 61 79 | prin|t "Array|
|00003d50| 20 41 66 74 65 72 20 73 | 6f 72 74 3a 22 3a 66 6f | After s|ort:":fo|
|00003d60| 72 20 69 25 3d 30 20 74 | 6f 20 33 30 30 3a 70 72 |r i%=0 t|o 300:pr|
|00003d70| 69 6e 74 20 61 25 28 69 | 25 29 2c 3a 6e 65 78 74 |int a%(i|%),:next|
|00003d80| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 72 65 6d 20 |.. | rem |
|00003d90| 74 68 65 20 6c 69 73 74 | 20 73 68 6f 75 6c 64 20 |the list| should |
|00003da0| 62 65 20 73 6f 72 74 65 | 64 20 69 6e 20 61 73 63 |be sorte|d in asc|
|00003db0| 65 6e 64 69 6e 67 20 6e | 75 6d 65 72 69 63 61 6c |ending n|umerical|
|00003dc0| 20 6f 72 64 65 72 21 0d | 0a 0d 0a 0d 0a 0d 0a 0d | order!.|........|
|00003dd0| 0a 0d 0a 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |........|........|
|00003de0| 0a 0d 0a 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |........|........|
|00003df0| 0a 0d 0a 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |........|........|
|00003e00| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00003e10| 20 20 20 20 20 2d 2d 2d | 20 42 41 53 44 4c 58 20 | ---| BASDLX |
|00003e20| 20 20 56 65 72 73 69 6f | 6e 20 31 2e 36 20 20 20 | Versio|n 1.6 |
|00003e30| 53 65 70 74 65 6d 62 65 | 72 20 31 39 38 37 20 2d |Septembe|r 1987 -|
|00003e40| 2d 2d 0d 0a 0c 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |--......|........|
|00003e50| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 20 42 41 |. | BA|
|00003e60| 53 44 4c 58 20 28 43 29 | 20 43 6f 70 79 72 69 67 |SDLX (C)| Copyrig|
|00003e70| 68 74 20 31 39 38 36 2c | 31 39 38 37 20 42 79 20 |ht 1986,|1987 By |
|00003e80| 47 75 73 74 61 76 6f 20 | 48 2e 20 56 65 72 64 75 |Gustavo |H. Verdu|
|00003e90| 6e 20 20 50 61 67 65 20 | 38 0d 0a 0d 0a 20 20 20 |n Page |8.... |
|00003ea0| 20 20 20 20 20 20 20 46 | 75 6e 63 74 69 6f 6e 20 | F|unction |
|00003eb0| 4e 61 6d 65 3a 20 42 53 | 4f 52 54 53 0d 0a 20 20 |Name: BS|ORTS.. |
|00003ec0| 20 20 20 20 20 20 20 20 | 41 72 67 75 6d 65 6e 74 | |Argument|
|00003ed0| 73 20 20 20 20 3a 20 28 | 4e 75 6d 5f 6f 66 5f 65 |s : (|Num_of_e|
|00003ee0| 6c 65 6d 65 6e 74 73 25 | 2c 41 72 72 61 79 24 28 |lements%|,Array$(|
|00003ef0| 73 74 61 72 74 5f 70 6f | 73 69 74 69 6f 6e 29 29 |start_po|sition))|
|00003f00| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 54 79 70 65 |.. | Type|
|00003f10| 20 20 20 20 20 20 20 20 | 20 3a 20 53 74 72 69 6e | | : Strin|
|00003f20| 67 20 61 72 72 61 79 20 | 73 65 72 76 69 63 65 0d |g array |service.|
|00003f30| 0a 20 20 20 20 20 20 20 | 20 20 20 50 75 72 70 6f |. | Purpo|
|00003f40| 73 65 20 20 20 20 20 20 | 3a 20 53 6f 72 74 73 20 |se |: Sorts |
|00003f50| 61 20 73 74 72 69 6e 67 | 20 61 72 72 61 79 20 69 |a string| array i|
|00003f60| 6e 20 61 73 63 65 6e 64 | 69 6e 67 20 61 6c 70 68 |n ascend|ing alph|
|00003f70| 61 62 65 74 69 63 61 6c | 0d 0a 20 20 20 20 20 20 |abetical|.. |
|00003f80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003f90| 20 20 20 6f 72 64 65 72 | 2e 0d 0a 0d 0a 20 20 20 | order|..... |
|00003fa0| 20 20 20 20 20 20 20 44 | 65 73 63 72 69 70 74 69 | D|escripti|
|00003fb0| 6f 6e 3a 0d 0a 20 20 20 | 20 20 20 20 20 20 20 54 |on:.. | T|
|00003fc0| 68 65 20 20 66 69 72 73 | 74 20 61 72 67 75 6d 65 |he firs|t argume|
|00003fd0| 6e 74 20 73 68 6f 75 6c | 64 20 63 6f 6e 74 61 69 |nt shoul|d contai|
|00003fe0| 6e 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |n the nu|mber of |
|00003ff0| 65 6c 65 6d 65 6e 74 73 | 20 74 6f 20 73 6f 72 74 |elements| to sort|
|00004000| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004010| 20 69 6e 20 74 68 65 20 | 61 72 72 61 79 2e 20 20 | in the |array. |
|00004020| 54 68 65 20 73 65 63 6f | 6e 64 20 61 72 67 75 6d |The seco|nd argum|
|00004030| 65 6e 74 20 69 73 20 74 | 68 65 20 61 72 72 61 79 |ent is t|he array|
|00004040| 20 20 69 74 73 65 6c 66 | 2e 20 20 62 65 0d 0a 20 | itself|. be.. |
|00004050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 73 75 | | su|
|00004060| 72 65 20 20 74 6f 20 20 | 73 70 65 63 69 66 79 20 |re to |specify |
|00004070| 20 74 68 65 20 20 73 74 | 61 72 74 69 6e 67 20 70 | the st|arting p|
|00004080| 6f 73 69 74 69 6f 6e 20 | 69 6e 20 74 68 65 20 61 |osition |in the a|
|00004090| 72 72 61 79 20 5b 69 2e | 65 2e 0d 0a 20 20 20 20 |rray [i.|e... |
|000040a0| 20 20 20 20 20 20 20 20 | 20 20 20 42 53 4f 52 54 | | BSORT|
|000040b0| 53 28 65 6c 65 6d 65 6e | 74 73 25 2c 61 24 28 30 |S(elemen|ts%,a$(0|
|000040c0| 29 29 5d 0d 0a 20 20 20 | 20 20 20 20 20 20 20 49 |))].. | I|
|000040d0| 4d 50 4f 52 54 41 4e 54 | 3a 20 41 6c 6c 20 6f 66 |MPORTANT|: All of|
|000040e0| 20 74 68 65 20 65 6c 65 | 6d 65 6e 74 73 20 20 69 | the ele|ments i|
|000040f0| 6e 20 20 74 68 65 20 20 | 61 72 72 61 79 20 20 4d |n the |array M|
|00004100| 55 53 54 20 20 68 61 76 | 65 20 20 65 71 75 61 6c |UST hav|e equal|
|00004110| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00004120| 20 6c 65 6e 67 74 68 73 | 2c 20 69 66 20 6e 6f 74 | lengths|, if not|
|00004130| 2c 20 75 6e 70 72 65 64 | 69 63 74 61 62 6c 65 20 |, unpred|ictable |
|00004140| 72 65 73 75 6c 74 73 20 | 77 69 6c 6c 20 6f 63 63 |results |will occ|
|00004150| 75 72 20 74 6f 20 42 41 | 53 49 43 0d 0a 0d 0a 20 |ur to BA|SIC.... |
|00004160| 20 20 20 20 20 20 20 20 | 20 45 78 61 6d 70 6c 65 | | Example|
|00004170| 3a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 64 69 6d |:.. | dim|
|00004180| 20 61 24 28 31 30 29 3a | 61 24 28 30 29 22 46 69 | a$(10):|a$(0)"Fi|
|00004190| 72 73 74 22 3a 61 24 28 | 31 29 3d 22 53 65 63 6f |rst":a$(|1)="Seco|
|000041a0| 6e 64 22 3a 61 24 28 32 | 29 3d 22 54 68 69 72 64 |nd":a$(2|)="Third|
|000041b0| 22 0d 0a 20 20 20 20 20 | 20 20 20 20 20 61 24 28 |".. | a$(|
|000041c0| 33 29 3d 22 46 6f 75 72 | 74 68 22 3a 61 24 28 34 |3)="Four|th":a$(4|
|000041d0| 29 3d 22 46 69 66 74 68 | 22 3a 61 24 28 35 29 3d |)="Fifth|":a$(5)=|
|000041e0| 22 53 69 78 74 68 22 3a | 61 24 28 36 29 3d 22 53 |"Sixth":|a$(6)="S|
|000041f0| 65 76 65 6e 74 68 22 0d | 0a 20 20 20 20 20 20 20 |eventh".|. |
|00004200| 20 20 20 61 24 28 37 29 | 3d 22 45 69 67 68 74 68 | a$(7)|="Eighth|
|00004210| 22 3a 61 24 28 38 29 3d | 22 4e 69 6e 74 68 22 3a |":a$(8)=|"Ninth":|
|00004220| 61 24 28 39 29 3d 22 54 | 65 6e 74 68 22 0d 0a 20 |a$(9)="T|enth".. |
|00004230| 20 20 20 20 20 20 20 20 | 20 66 6f 72 20 69 25 3d | | for i%=|
|00004240| 30 20 74 6f 20 39 3a 62 | 24 3d 73 70 61 63 65 24 |0 to 9:b|$=space$|
|00004250| 28 31 30 29 3a 63 61 6c | 6c 20 73 65 74 6c 28 61 |(10):cal|l setl(a|
|00004260| 24 28 69 25 29 2c 62 24 | 29 3a 61 24 28 69 25 29 |$(i%),b$|):a$(i%)|
|00004270| 3d 62 24 3a 6e 65 78 74 | 0d 0a 20 20 20 20 20 20 |=b$:next|.. |
|00004280| 20 20 20 20 72 65 6d 20 | 74 68 65 20 61 62 6f 76 | rem |the abov|
|00004290| 65 20 6c 69 6e 65 20 77 | 69 6c 6c 20 6d 61 6b 65 |e line w|ill make|
|000042a0| 20 61 6c 6c 20 6f 66 20 | 74 68 65 20 65 6c 65 6d | all of |the elem|
|000042b0| 65 6e 74 73 20 69 6e 20 | 74 68 65 20 61 72 72 61 |ents in |the arra|
|000042c0| 79 0d 0a 20 20 20 20 20 | 20 20 20 20 20 72 65 6d |y.. | rem|
|000042d0| 20 68 61 76 65 20 65 71 | 75 61 6c 20 6c 65 6e 67 | have eq|ual leng|
|000042e0| 74 68 73 2e 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ths... | |
|000042f0| 70 72 69 6e 74 20 22 41 | 72 72 61 79 20 62 65 66 |print "A|rray bef|
|00004300| 6f 72 65 20 73 6f 72 74 | 3a 22 3a 66 6f 72 20 69 |ore sort|:":for i|
|00004310| 25 3d 30 20 74 6f 20 39 | 3a 70 72 69 6e 74 20 61 |%=0 to 9|:print a|
|00004320| 24 28 69 25 29 3a 6e 65 | 78 74 0d 0a 20 20 20 20 |$(i%):ne|xt.. |
|00004330| 20 20 20 20 20 20 65 6e | 75 6d 25 3d 31 30 3a 63 | en|um%=10:c|
|00004340| 61 6c 6c 20 62 73 6f 72 | 74 73 28 65 6e 75 6d 25 |all bsor|ts(enum%|
|00004350| 2c 61 24 28 30 29 29 0d | 0a 20 20 20 20 20 20 20 |,a$(0)).|. |
|00004360| 20 20 20 72 65 6d 20 20 | 65 6e 75 6d 25 3d 31 30 | rem |enum%=10|
|00004370| 20 20 62 65 63 61 75 73 | 65 20 20 74 68 65 72 65 | becaus|e there|
|00004380| 20 20 61 72 65 20 31 30 | 20 65 6c 65 6d 65 6e 74 | are 10| element|
|00004390| 73 20 69 6e 20 74 68 65 | 20 61 72 72 61 79 20 28 |s in the| array (|
|000043a0| 30 2d 39 29 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |0-9).. | |
|000043b0| 20 20 20 20 20 70 72 69 | 6e 74 20 22 41 72 72 61 | pri|nt "Arra|
|000043c0| 79 20 41 66 74 65 72 20 | 73 6f 72 74 3a 22 3a 66 |y After |sort:":f|
|000043d0| 6f 72 20 69 25 3d 30 20 | 74 6f 20 39 3a 70 72 69 |or i%=0 |to 9:pri|
|000043e0| 6e 74 20 61 24 28 69 25 | 29 3a 6e 65 78 74 0d 0a |nt a$(i%|):next..|
|000043f0| 20 20 20 20 20 20 20 20 | 20 20 72 65 6d 20 74 68 | | rem th|
|00004400| 65 20 6c 69 73 74 20 73 | 68 6f 75 6c 64 20 62 65 |e list s|hould be|
|00004410| 20 73 6f 72 74 65 64 20 | 69 6e 20 61 73 63 65 6e | sorted |in ascen|
|00004420| 64 69 6e 67 20 61 6c 70 | 68 61 62 65 74 69 63 61 |ding alp|habetica|
|00004430| 6c 20 6f 72 64 65 72 21 | 0d 0a 0d 0a 20 20 20 20 |l order!|.... |
|00004440| 20 20 20 20 20 20 46 75 | 6e 63 74 69 6f 6e 20 4e | Fu|nction N|
|00004450| 61 6d 65 3a 20 43 41 53 | 45 53 54 52 20 20 20 28 |ame: CAS|ESTR (|
|00004460| 4e 61 6d 65 20 63 68 61 | 6e 67 65 64 20 74 6f 20 |Name cha|nged to |
|00004470| 63 6f 6e 66 6f 72 6d 20 | 77 69 74 68 20 51 42 20 |conform |with QB |
|00004480| 33 2e 30 30 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |3.00).. | |
|00004490| 20 41 72 67 75 6d 65 6e | 74 73 20 20 20 20 3a 20 | Argumen|ts : |
|000044a0| 28 73 74 72 69 6e 67 5f | 76 61 72 24 2c 5b 63 61 |(string_|var$,[ca|
|000044b0| 73 65 5f 76 61 6c 25 5d | 29 0d 0a 20 20 20 20 20 |se_val%]|).. |
|000044c0| 20 20 20 20 20 54 79 70 | 65 20 20 20 20 20 20 20 | Typ|e |
|000044d0| 20 20 3a 20 53 74 72 69 | 6e 67 20 73 65 72 76 69 | : Stri|ng servi|
|000044e0| 63 65 0d 0a 20 20 20 20 | 20 20 20 20 20 20 50 75 |ce.. | Pu|
|000044f0| 72 70 6f 73 65 20 20 20 | 20 20 20 3a 20 43 6f 6e |rpose | : Con|
|00004500| 76 65 72 74 73 20 73 74 | 72 69 6e 67 20 74 6f 20 |verts st|ring to |
|00004510| 64 65 66 69 6e 65 64 20 | 63 61 73 65 2e 0d 0a 0d |defined |case....|
|00004520| 0a 20 20 20 20 20 20 20 | 20 20 20 44 65 73 63 72 |. | Descr|
|00004530| 69 70 74 69 6f 6e 20 20 | 3a 0d 0a 20 20 20 20 20 |iption |:.. |
|00004540| 20 20 20 20 20 63 61 73 | 65 5f 76 61 6c 25 2c 20 | cas|e_val%, |
|00004550| 30 20 3d 20 43 6f 6e 76 | 65 72 74 20 73 74 72 69 |0 = Conv|ert stri|
|00004560| 6e 67 20 74 6f 20 6c 6f | 77 65 72 20 63 61 73 65 |ng to lo|wer case|
|00004570| 2e 20 31 20 3d 20 43 6f | 6e 76 65 72 74 20 73 74 |. 1 = Co|nvert st|
|00004580| 72 69 6e 67 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ring.. | |
|00004590| 74 6f 20 75 70 70 65 72 | 20 63 61 73 65 2c 20 20 |to upper| case, |
|000045a0| 32 20 3d 20 53 77 61 70 | 20 63 61 73 65 20 28 41 |2 = Swap| case (A|
|000045b0| 6c 6c 20 75 70 70 65 72 | 20 63 61 73 65 20 63 68 |ll upper| case ch|
|000045c0| 61 72 61 63 74 65 72 73 | 0d 0a 20 20 20 20 20 20 |aracters|.. |
|000045d0| 20 20 20 20 77 69 6c 6c | 20 62 65 20 63 6f 6e 76 | will| be conv|
|000045e0| 65 72 74 65 64 20 74 6f | 20 6c 6f 77 65 72 20 63 |erted to| lower c|
|000045f0| 61 73 65 20 61 6e 64 20 | 76 69 63 65 2d 76 65 72 |ase and |vice-ver|
|00004600| 73 61 2e 29 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |sa.)....| |
|00004610| 20 20 45 78 61 6d 70 6c | 65 3a 0d 0a 0d 0a 20 20 | Exampl|e:.... |
|00004620| 20 20 20 20 20 20 20 20 | 61 24 3d 22 74 68 69 73 | |a$="this|
|00004630| 20 77 69 6c 6c 20 62 65 | 20 69 6e 20 63 61 70 73 | will be| in caps|
|00004640| 22 3a 63 61 73 65 25 3d | 31 3a 63 61 6c 6c 20 63 |":case%=|1:call c|
|00004650| 61 73 65 28 61 24 2c 63 | 61 73 65 25 29 0d 0a 20 |ase(a$,c|ase%).. |
|00004660| 20 20 20 20 20 20 20 20 | 20 70 72 69 6e 74 20 61 | | print a|
|00004670| 24 0d 0a 0d 0a 0d 0a 0d | 0a 0d 0a 0d 0a 0d 0a 0d |$.......|........|
|00004680| 0a 0d 0a 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |....... | |
|00004690| 20 20 20 20 20 20 20 20 | 20 20 20 2d 2d 2d 20 42 | | --- B|
|000046a0| 41 53 44 4c 58 20 20 20 | 56 65 72 73 69 6f 6e 20 |ASDLX |Version |
|000046b0| 31 2e 36 20 20 20 53 65 | 70 74 65 6d 62 65 72 20 |1.6 Se|ptember |
|000046c0| 31 39 38 37 20 2d 2d 2d | 0d 0a 0c 0d 0a 0d 0a 0d |1987 ---|........|
|000046d0| 0a 0d 0a 0d 0a 0d 0a 20 | 20 20 20 20 20 20 20 20 |....... | |
|000046e0| 20 20 20 20 42 41 53 44 | 4c 58 20 28 43 29 20 43 | BASD|LX (C) C|
|000046f0| 6f 70 79 72 69 67 68 74 | 20 31 39 38 36 2c 31 39 |opyright| 1986,19|
|00004700| 38 37 20 42 79 20 47 75 | 73 74 61 76 6f 20 48 2e |87 By Gu|stavo H.|
|00004710| 20 56 65 72 64 75 6e 20 | 20 50 61 67 65 20 39 0d | Verdun | Page 9.|
|00004720| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 46 75 6e |... | Fun|
|00004730| 63 74 69 6f 6e 20 4e 61 | 6d 65 3a 20 43 41 53 45 |ction Na|me: CASE|
|00004740| 52 41 4e 47 45 0d 0a 20 | 20 20 20 20 20 20 20 20 |RANGE.. | |
|00004750| 20 41 72 67 75 6d 65 6e | 74 73 20 20 20 20 3a 20 | Argumen|ts : |
|00004760| 28 73 74 72 69 6e 67 5f | 76 61 72 24 2c 5b 73 74 |(string_|var$,[st|
|00004770| 61 72 74 25 5d 2c 5b 6c | 65 6e 67 74 68 25 5d 2c |art%],[l|ength%],|
|00004780| 5b 63 61 73 65 5f 76 61 | 6c 25 5d 29 0d 0a 20 20 |[case_va|l%]).. |
|00004790| 20 20 20 20 20 20 20 20 | 54 79 70 65 20 20 20 20 | |Type |
|000047a0| 20 20 20 20 20 3a 20 53 | 74 72 69 6e 67 20 73 65 | : S|tring se|
|000047b0| 72 76 69 63 65 0d 0a 20 | 20 20 20 20 20 20 20 20 |rvice.. | |
|000047c0| 20 50 75 72 70 6f 73 65 | 20 20 20 20 20 20 3a 20 | Purpose| : |
|000047d0| 43 6f 6e 76 65 72 74 73 | 20 61 20 70 6f 72 74 69 |Converts| a porti|
|000047e0| 6f 6e 20 6f 66 20 61 20 | 73 74 72 69 6e 67 20 74 |on of a |string t|
|000047f0| 6f 20 64 65 66 69 6e 65 | 64 20 63 61 73 65 2e 0d |o define|d case..|
|00004800| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 44 65 73 |... | Des|
|00004810| 63 72 69 70 74 69 6f 6e | 20 20 3a 0d 0a 20 20 20 |cription| :.. |
|00004820| 20 20 20 20 20 20 20 63 | 61 73 65 5f 76 61 6c 25 | c|ase_val%|
|00004830| 2c 20 30 20 3d 20 43 6f | 6e 76 65 72 74 20 73 74 |, 0 = Co|nvert st|
|00004840| 72 69 6e 67 20 74 6f 20 | 6c 6f 77 65 72 20 63 61 |ring to |lower ca|
|00004850| 73 65 2e 20 31 20 3d 20 | 43 6f 6e 76 65 72 74 20 |se. 1 = |Convert |
|00004860| 73 74 72 69 6e 67 0d 0a | 20 20 20 20 20 20 20 20 |string..| |
|00004870| 20 20 74 6f 20 75 70 70 | 65 72 20 63 61 73 65 2c | to upp|er case,|
|00004880| 20 20 32 20 3d 20 53 77 | 61 70 20 63 61 73 65 20 | 2 = Sw|ap case |
|00004890| 28 41 6c 6c 20 75 70 70 | 65 72 20 63 61 73 65 20 |(All upp|er case |
|000048a0| 63 68 61 72 61 63 74 65 | 72 73 0d 0a 20 20 20 20 |characte|rs.. |
|000048b0| 20 20 20 20 20 20 77 69 | 6c 6c 20 62 65 20 63 6f | wi|ll be co|
|000048c0| 6e 76 65 72 74 65 64 20 | 74 6f 20 6c 6f 77 65 72 |nverted |to lower|
|000048d0| 20 63 61 73 65 20 61 6e | 64 20 76 69 63 65 2d 76 | case an|d vice-v|
|000048e0| 65 72 73 61 2e 29 0d 0a | 0d 0a 20 20 20 20 20 20 |ersa.)..|.. |
|000048f0| 20 20 20 20 45 78 61 6d | 70 6c 65 3a 0d 0a 20 20 | Exam|ple:.. |
|00004900| 20 20 20 20 20 20 20 20 | 61 24 3d 22 74 68 65 20 | |a$="the |
|00004910| 77 6f 72 64 20 60 63 61 | 70 73 27 20 77 69 6c 6c |word `ca|ps' will|
|00004920| 20 62 65 20 69 6e 20 75 | 70 70 65 72 20 63 61 73 | be in u|pper cas|
|00004930| 65 20 3a 63 61 70 73 22 | 0d 0a 20 20 20 20 20 20 |e :caps"|.. |
|00004940| 20 20 20 20 63 61 73 65 | 25 3d 31 3a 63 61 6c 6c | case|%=1:call|
|00004950| 20 63 61 73 65 28 61 24 | 2c 34 30 2c 34 2c 31 29 | case(a$|,40,4,1)|
|00004960| 3a 70 72 69 6e 74 20 61 | 24 0d 0a 0d 0a 20 20 20 |:print a|$.... |
|00004970| 20 20 20 20 20 20 20 46 | 75 6e 63 74 69 6f 6e 20 | F|unction |
|00004980| 4e 61 6d 65 3a 20 43 4e | 46 47 53 44 0d 0a 20 20 |Name: CN|FGSD.. |
|00004990| 20 20 20 20 20 20 20 20 | 41 72 67 75 6d 65 6e 74 | |Argument|
|000049a0| 73 20 20 20 20 3a 20 28 | 5b 6f 76 65 72 77 72 69 |s : (|[overwri|
|000049b0| 74 65 25 5d 2c 5b 69 6e | 73 65 72 74 25 5d 2c 5b |te%],[in|sert%],[|
|000049c0| 66 72 61 6d 65 25 5d 2c | 5b 74 61 62 25 5d 29 0d |frame%],|[tab%]).|
|000049d0| 0a 20 20 20 20 20 20 20 | 20 20 20 54 79 70 65 20 |. | Type |
|000049e0| 20 20 20 20 20 20 20 20 | 3a 20 43 6f 6e 66 69 67 | |: Config|
|000049f0| 75 72 61 74 69 6f 6e 20 | 66 6f 72 20 47 45 54 53 |uration |for GETS|
|00004a00| 54 52 44 0d 0a 20 20 20 | 20 20 20 20 20 20 20 50 |TRD.. | P|
|00004a10| 75 72 70 6f 73 65 20 20 | 20 20 20 20 3a 20 43 68 |urpose | : Ch|
|00004a20| 61 6e 67 65 20 64 65 66 | 61 75 6c 74 20 73 65 74 |ange def|ault set|
|00004a30| 74 69 6e 67 73 20 66 6f | 72 20 47 45 54 53 54 52 |tings fo|r GETSTR|
|00004a40| 44 2e 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |D..... | |
|00004a50| 44 65 73 63 72 69 70 74 | 69 6f 6e 20 20 3a 0d 0a |Descript|ion :..|
|00004a60| 20 20 20 20 20 20 20 20 | 20 20 5b 4f 76 65 72 77 | | [Overw|
|00004a70| 72 69 74 65 25 5d 20 26 | 20 5b 49 6e 73 65 72 74 |rite%] &| [Insert|
|00004a80| 25 5d 2c 20 20 28 44 65 | 66 61 75 6c 74 20 69 73 |%], (De|fault is|
|00004a90| 20 46 75 6c 6c 20 26 20 | 20 48 61 6c 66 20 20 73 | Full & | Half s|
|00004aa0| 69 7a 65 20 20 63 75 72 | 73 6f 72 0d 0a 20 20 20 |ize cur|sor.. |
|00004ab0| 20 20 20 20 20 20 20 72 | 65 73 70 65 63 74 69 76 | r|espectiv|
|00004ac0| 65 6c 79 29 20 54 68 65 | 73 65 20 74 77 6f 20 61 |ely) The|se two a|
|00004ad0| 72 67 75 6d 65 6e 74 73 | 20 63 6f 6e 74 61 69 6e |rguments| contain|
|00004ae0| 20 74 68 65 20 63 75 72 | 73 6f 72 20 73 68 61 70 | the cur|sor shap|
|00004af0| 65 73 20 20 74 68 61 74 | 0d 0a 20 20 20 20 20 20 |es that|.. |
|00004b00| 20 20 20 20 69 6e 64 69 | 63 61 74 65 20 20 69 66 | indi|cate if|
|00004b10| 20 6f 76 65 72 77 72 69 | 74 65 20 6f 72 20 69 6e | overwri|te or in|
|00004b20| 73 65 72 74 20 20 69 73 | 20 61 63 74 69 76 65 2e |sert is| active.|
|00004b30| 20 20 54 68 65 20 66 6f | 72 6d 75 6c 61 20 66 6f | The fo|rmula fo|
|00004b40| 72 20 74 68 65 0d 0a 20 | 20 20 20 20 20 20 20 20 |r the.. | |
|00004b50| 20 76 61 6c 75 65 73 20 | 74 68 61 74 20 6d 75 73 | values |that mus|
|00004b60| 74 20 62 65 20 73 74 6f | 72 65 64 20 69 6e 20 74 |t be sto|red in t|
|00004b70| 68 65 73 65 20 74 77 6f | 20 61 72 67 75 6d 65 6e |hese two| argumen|
|00004b80| 74 73 20 69 73 20 61 73 | 20 20 66 6f 6c 6c 6f 77 |ts is as| follow|
|00004b90| 73 3a 0d 0a 20 20 20 20 | 20 20 20 20 20 20 3d 28 |s:.. | =(|
|00004ba0| 53 54 41 52 54 20 20 61 | 6e 64 20 33 31 29 2a 32 |START a|nd 31)*2|
|00004bb0| 35 36 2b 53 54 4f 50 20 | 20 20 57 68 65 72 65 20 |56+STOP | Where |
|00004bc0| 53 54 41 52 54 20 26 20 | 53 54 4f 50 20 61 72 65 |START & |STOP are|
|00004bd0| 20 74 68 65 20 76 61 6c | 75 65 73 20 66 6f 72 0d | the val|ues for.|
|00004be0| 0a 20 20 20 20 20 20 20 | 20 20 20 63 75 72 73 6f |. | curso|
|00004bf0| 72 20 73 74 61 72 74 20 | 26 20 73 74 6f 70 20 73 |r start |& stop s|
|00004c00| 63 61 6e 20 6c 69 6e 65 | 73 20 77 68 69 63 68 20 |can line|s which |
|00004c10| 6d 75 73 74 20 62 65 20 | 69 6e 20 74 68 65 20 72 |must be |in the r|
|00004c20| 61 6e 67 65 20 20 6f 66 | 20 20 30 2d 0d 0a 20 20 |ange of| 0-.. |
|00004c30| 20 20 20 20 20 20 20 20 | 33 31 2e 20 20 28 53 65 | |31. (Se|
|00004c40| 65 20 74 68 65 20 42 41 | 53 49 43 20 4c 4f 43 41 |e the BA|SIC LOCA|
|00004c50| 54 45 20 63 6f 6d 6d 61 | 6e 64 20 66 6f 72 20 6d |TE comma|nd for m|
|00004c60| 6f 72 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ore info|rmation |
|00004c70| 6f 6e 20 63 75 72 73 6f | 72 0d 0a 20 20 20 20 20 |on curso|r.. |
|00004c80| 20 20 20 20 20 73 68 61 | 70 65 73 2e 29 20 4e 4f | sha|pes.) NO|
|00004c90| 54 45 3a 20 61 20 76 61 | 6c 75 65 20 6f 66 20 7a |TE: a va|lue of z|
|00004ca0| 65 72 6f 20 66 6f 72 20 | 20 74 68 65 73 65 20 20 |ero for | these |
|00004cb0| 6f 70 74 69 6f 6e 73 20 | 20 6c 65 61 76 65 73 20 |options | leaves |
|00004cc0| 20 74 68 65 69 72 0d 0a | 20 20 20 20 20 20 20 20 | their..| |
|00004cd0| 20 20 63 75 72 72 65 6e | 74 20 64 65 66 61 75 6c | curren|t defaul|
|00004ce0| 74 73 20 69 6e 20 65 66 | 66 65 63 74 2e 0d 0a 0d |ts in ef|fect....|
|00004cf0| 0a 20 20 20 20 20 20 20 | 20 20 20 5b 46 72 61 6d |. | [Fram|
|00004d00| 65 25 5d 2c 20 20 28 44 | 65 66 61 75 6c 74 20 20 |e%], (D|efault |
|00004d10| 41 53 43 49 49 20 20 39 | 35 29 20 20 54 68 69 73 |ASCII 9|5) This|
|00004d20| 20 61 72 67 75 6d 65 6e | 74 20 63 6f 6e 74 61 69 | argumen|t contai|
|00004d30| 6e 73 20 74 68 65 20 41 | 53 43 49 49 0d 0a 20 20 |ns the A|SCII.. |
|00004d40| 20 20 20 20 20 20 20 20 | 63 6f 64 65 20 66 6f 72 | |code for|
|00004d50| 20 74 68 65 20 66 72 61 | 6d 65 20 63 68 61 72 61 | the fra|me chara|
|00004d60| 63 74 65 72 2e 20 20 47 | 45 54 53 54 52 44 20 64 |cter. G|ETSTRD d|
|00004d70| 72 61 77 73 20 61 20 6f | 6e 65 20 6c 69 6e 65 20 |raws a o|ne line |
|00004d80| 66 72 61 6d 65 20 20 6f | 66 0d 0a 20 20 20 20 20 |frame o|f.. |
|00004d90| 20 20 20 20 20 74 68 65 | 20 20 6c 65 6e 67 74 68 | the| length|
|00004da0| 20 6f 66 20 53 74 72 69 | 6e 67 24 20 74 6f 20 6c | of Stri|ng$ to l|
|00004db0| 65 74 20 79 6f 75 20 73 | 65 65 20 74 68 65 20 66 |et you s|ee the f|
|00004dc0| 69 65 6c 64 20 73 69 7a | 65 2e 20 20 41 20 76 61 |ield siz|e. A va|
|00004dd0| 6c 75 65 20 6f 66 0d 0a | 20 20 20 20 20 20 20 20 |lue of..| |
|00004de0| 20 20 7a 65 72 6f 20 66 | 6f 72 20 74 68 69 73 20 | zero f|or this |
|00004df0| 6f 70 74 69 6f 6e 20 6c | 65 61 76 65 73 20 69 74 |option l|eaves it|
|00004e00| 73 20 63 75 72 72 65 6e | 74 20 64 65 66 61 75 6c |s curren|t defaul|
|00004e10| 74 20 69 6e 20 65 66 66 | 65 63 74 2e 0d 0a 0d 0a |t in eff|ect.....|
|00004e20| 20 20 20 20 20 20 20 20 | 20 20 5b 54 61 62 25 5d | | [Tab%]|
|00004e30| 2c 20 20 28 44 65 66 61 | 75 6c 74 20 31 29 20 4e |, (Defa|ult 1) N|
|00004e40| 75 6d 62 65 72 20 6f 66 | 20 73 70 61 63 65 73 20 |umber of| spaces |
|00004e50| 74 6f 20 69 6e 73 65 72 | 74 20 66 6f 72 20 61 20 |to inser|t for a |
|00004e60| 5b 54 41 42 5d 20 20 6b | 65 79 2e 0d 0a 20 20 20 |[TAB] k|ey... |
|00004e70| 20 20 20 20 20 20 20 56 | 61 6c 69 64 20 6e 75 6d | V|alid num|
|00004e80| 62 65 72 20 69 73 20 69 | 6e 20 74 68 65 20 72 61 |ber is i|n the ra|
|00004e90| 6e 67 65 20 6f 66 20 30 | 2d 31 30 2e 20 41 20 76 |nge of 0|-10. A v|
|00004ea0| 61 6c 75 65 20 61 62 6f | 76 65 20 31 30 20 6c 65 |alue abo|ve 10 le|
|00004eb0| 61 76 65 73 20 74 68 65 | 0d 0a 20 20 20 20 20 20 |aves the|.. |
|00004ec0| 20 20 20 20 63 75 72 72 | 65 6e 74 20 64 65 66 61 | curr|ent defa|
|00004ed0| 75 6c 74 20 75 6e 63 68 | 61 6e 67 65 64 2e 0d 0a |ult unch|anged...|
|00004ee0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 45 78 61 6d |.. | Exam|
|00004ef0| 70 6c 65 3a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ple:.. | |
|00004f00| 6f 63 25 3d 28 30 20 61 | 6e 64 20 33 31 29 2a 32 |oc%=(0 a|nd 31)*2|
|00004f10| 35 36 2b 37 3a 69 63 25 | 3d 28 35 20 61 6e 64 20 |56+7:ic%|=(5 and |
|00004f20| 33 31 29 2a 32 35 36 2b | 37 20 27 72 65 6d 20 74 |31)*256+|7 'rem t|
|00004f30| 68 69 73 20 69 73 20 68 | 65 72 65 20 74 6f 0d 0a |his is h|ere to..|
|00004f40| 20 20 20 20 20 20 20 20 | 20 20 27 72 65 6d 20 73 | | 'rem s|
|00004f50| 68 6f 77 20 74 68 65 20 | 76 61 6c 75 65 73 20 6f |how the |values o|
|00004f60| 66 20 74 68 65 20 64 65 | 66 61 75 6c 74 20 63 75 |f the de|fault cu|
|00004f70| 72 73 6f 72 73 2e 0d 0a | 20 20 20 20 20 20 20 20 |rsors...| |
|00004f80| 20 20 69 63 25 3d 30 3a | 6f 63 25 3d 3a 66 72 61 | ic%=0:|oc%=:fra|
|00004f90| 6d 65 25 3d 31 37 37 3a | 74 61 62 25 3d 30 3a 63 |me%=177:|tab%=0:c|
|00004fa0| 61 6c 6c 20 63 6e 66 67 | 73 64 28 69 63 25 2c 6f |all cnfg|sd(ic%,o|
|00004fb0| 63 25 2c 66 72 61 6d 65 | 25 2c 74 61 62 25 29 0d |c%,frame|%,tab%).|
|00004fc0| 0a 0d 0a 20 20 20 20 20 | 20 20 20 20 20 2d 49 6e |... | -In|
|00004fd0| 20 74 68 69 73 20 65 78 | 61 6d 70 6c 65 3a 20 49 | this ex|ample: I|
|00004fe0| 6e 73 65 72 74 20 26 20 | 6f 76 65 72 77 72 69 74 |nsert & |overwrit|
|00004ff0| 65 20 63 75 72 73 6f 72 | 20 76 61 6c 75 65 73 20 |e cursor| values |
|00005000| 61 72 65 20 75 6e 63 68 | 61 6e 67 65 64 2e 0d 0a |are unch|anged...|
|00005010| 20 20 20 20 20 20 20 20 | 20 20 46 72 61 6d 65 20 | | Frame |
|00005020| 20 63 68 61 72 61 63 74 | 65 72 20 20 69 73 20 20 | charact|er is |
|00005030| 73 65 74 20 20 74 6f 20 | 41 53 43 49 49 20 31 37 |set to |ASCII 17|
|00005040| 37 2e 20 20 5b 54 41 42 | 5d 20 6b 65 79 20 77 69 |7. [TAB|] key wi|
|00005050| 6c 6c 20 69 6e 73 65 72 | 74 20 30 0d 0a 20 20 20 |ll inser|t 0.. |
|00005060| 20 20 20 20 20 20 20 73 | 70 61 63 65 73 20 69 6e | s|paces in|
|00005070| 20 73 74 72 69 6e 67 20 | 28 64 69 73 61 62 6c 65 | string |(disable|
|00005080| 73 20 5b 54 41 42 5d 20 | 6b 65 79 29 2e 20 20 4e |s [TAB] |key). N|
|00005090| 4f 54 45 3a 20 49 66 20 | 41 53 43 49 49 20 33 32 |OTE: If |ASCII 32|
|000050a0| 20 28 73 70 61 63 65 29 | 0d 0a 20 20 20 20 20 20 | (space)|.. |
|000050b0| 20 20 20 20 69 73 20 6e | 6f 74 20 61 20 76 61 6c | is n|ot a val|
|000050c0| 69 64 20 6b 65 79 20 69 | 6e 20 47 45 54 53 54 52 |id key i|n GETSTR|
|000050d0| 44 20 74 68 65 6e 20 5b | 54 41 42 5d 20 64 6f 65 |D then [|TAB] doe|
|000050e0| 73 20 6e 6f 74 68 69 6e | 67 2e 0d 0a 0d 0a 0d 0a |s nothin|g.......|
|000050f0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|00005100| 20 20 20 20 20 20 2d 2d | 2d 20 42 41 53 44 4c 58 | --|- BASDLX|
|00005110| 20 20 20 56 65 72 73 69 | 6f 6e 20 31 2e 36 20 20 | Versi|on 1.6 |
|00005120| 20 53 65 70 74 65 6d 62 | 65 72 20 31 39 38 37 20 | Septemb|er 1987 |
|00005130| 2d 2d 2d 0d 0a 0c 0d 0a | 0d 0a 0d 0a 0d 0a 0d 0a |---.....|........|
|00005140| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 20 20 42 41 |.. | BA|
|00005150| 53 44 4c 58 20 28 43 29 | 20 43 6f 70 79 72 69 67 |SDLX (C)| Copyrig|
|00005160| 68 74 20 31 39 38 36 2c | 31 39 38 37 20 42 79 20 |ht 1986,|1987 By |
|00005170| 47 75 73 74 61 76 6f 20 | 48 2e 20 56 65 72 64 75 |Gustavo |H. Verdu|
|00005180| 6e 20 20 50 61 67 65 20 | 31 30 0d 0a 0d 0a 20 20 |n Page |10.... |
|00005190| 20 20 20 20 20 20 20 20 | 46 75 6e 63 74 69 6f 6e | |Function|
|000051a0| 20 4e 61 6d 65 3a 20 44 | 41 54 45 53 54 52 0d 0a | Name: D|ATESTR..|
|000051b0| 20 20 20 20 20 20 20 20 | 20 20 41 72 67 75 6d 65 | | Argume|
|000051c0| 6e 74 73 20 20 20 20 3a | 20 28 53 74 72 69 6e 67 |nts :| (String|
|000051d0| 5f 73 70 61 63 65 24 2c | 4c 65 6e 67 74 68 25 2c |_space$,|Length%,|
|000051e0| 5b 6d 6f 64 65 25 5d 29 | 0d 0a 20 20 20 20 20 20 |[mode%])|.. |
|000051f0| 20 20 20 20 54 79 70 65 | 20 20 20 20 20 20 20 20 | Type| |
|00005200| 20 3a 20 44 61 74 65 20 | 73 75 70 70 6f 72 74 0d | : Date |support.|
|00005210| 0a 20 20 20 20 20 20 20 | 20 20 20 50 75 72 70 6f |. | Purpo|
|00005220| 73 65 20 20 20 20 20 20 | 3a 20 52 65 61 64 73 20 |se |: Reads |
|00005230| 20 74 68 65 20 20 64 61 | 74 65 20 61 6e 64 20 77 | the da|te and w|
|00005240| 72 69 74 65 73 20 73 74 | 72 69 6e 67 5f 73 70 61 |rites st|ring_spa|
|00005250| 63 65 24 20 77 69 74 68 | 20 74 68 65 0d 0a 20 20 |ce$ with| the.. |
|00005260| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005270| 20 20 20 20 20 20 20 64 | 61 74 65 20 20 69 6e 20 | d|ate in |
|00005280| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 66 6f |the foll|owing fo|
|00005290| 72 6d 61 74 3a 20 77 65 | 65 6b 2d 64 61 79 20 6d |rmat: we|ek-day m|
|000052a0| 6f 6e 74 68 20 64 61 79 | 2c 0d 0a 20 20 20 20 20 |onth day|,.. |
|000052b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000052c0| 20 20 20 20 79 65 61 72 | 2e 20 28 69 2e 65 2e 20 | year|. (i.e. |
|000052d0| 54 68 75 72 73 64 61 79 | 2c 20 4d 61 72 63 68 20 |Thursday|, March |
|000052e0| 31 32 2c 20 31 39 38 37 | 29 0d 0a 0d 0a 20 20 20 |12, 1987|).... |
|000052f0| 20 20 20 20 20 20 20 44 | 65 73 63 72 69 70 74 69 | D|escripti|
|00005300| 6f 6e 20 20 3a 0d 0a 20 | 20 20 20 20 20 20 20 20 |on :.. | |
|00005310| 20 54 68 65 20 66 69 72 | 73 74 20 61 72 67 75 6d | The fir|st argum|
|00005320| 65 6e 74 2c 20 20 53 74 | 72 69 6e 67 5f 73 70 61 |ent, St|ring_spa|
|00005330| 63 65 24 2c 20 20 6d 75 | 73 74 20 62 65 20 20 6f |ce$, mu|st be o|
|00005340| 66 20 20 20 20 61 74 20 | 20 6c 65 61 73 74 20 20 |f at | least |
|00005350| 33 30 0d 0a 20 20 20 20 | 20 20 20 20 20 20 63 68 |30.. | ch|
|00005360| 61 72 61 63 74 65 72 73 | 20 20 6f 66 20 6c 65 6e |aracters| of len|
|00005370| 67 74 68 2e 20 20 49 66 | 20 4c 65 6e 67 74 68 25 |gth. If| Length%|
|00005380| 20 72 65 74 75 72 6e 73 | 20 77 69 74 68 20 61 20 | returns| with a |
|00005390| 7a 65 72 6f 20 74 68 65 | 6e 20 74 68 65 72 65 0d |zero the|n there.|
|000053a0| 0a 20 20 20 20 20 20 20 | 20 20 20 77 61 73 6e 27 |. | wasn'|
|000053b0| 74 20 65 6e 6f 75 67 68 | 20 73 70 61 63 65 20 69 |t enough| space i|
|000053c0| 6e 20 74 68 65 20 20 73 | 74 72 69 6e 67 20 20 76 |n the s|tring v|
|000053d0| 61 72 69 61 62 6c 65 20 | 20 53 74 72 69 6e 67 5f |ariable | String_|
|000053e0| 73 70 61 63 65 24 2e 20 | 20 54 68 65 0d 0a 20 20 |space$. | The.. |
|000053f0| 20 20 20 20 20 20 20 20 | 4d 6f 64 65 25 20 20 61 | |Mode% a|
|00005400| 72 67 75 6d 65 6e 74 20 | 20 74 65 6c 6c 73 20 74 |rgument | tells t|
|00005410| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 74 6f 20 65 |he funct|ion to e|
|00005420| 69 74 68 65 72 20 77 72 | 69 74 65 20 74 68 65 20 |ither wr|ite the |
|00005430| 66 75 6c 6c 20 6e 61 6d | 65 0d 0a 20 20 20 20 20 |full nam|e.. |
|00005440| 20 20 20 20 20 6f 66 20 | 74 68 65 20 77 65 65 6b | of |the week|
|00005450| 2d 64 61 79 20 61 6e 64 | 20 6d 6f 6e 74 68 20 6f |-day and| month o|
|00005460| 72 20 6a 75 73 74 20 20 | 74 68 65 20 20 66 69 72 |r just |the fir|
|00005470| 73 74 20 20 74 68 72 65 | 65 20 20 6c 65 74 74 65 |st thre|e lette|
|00005480| 72 73 20 20 6f 66 0d 0a | 20 20 20 20 20 20 20 20 |rs of..| |
|00005490| 20 20 65 61 63 68 2e 20 | 20 49 66 20 20 4d 6f 64 | each. | If Mod|
|000054a0| 65 25 3d 30 2c 20 20 6f | 72 20 61 6e 79 20 6e 75 |e%=0, o|r any nu|
|000054b0| 6d 62 65 72 20 6f 74 68 | 65 72 20 74 68 61 6e 20 |mber oth|er than |
|000054c0| 6f 6e 65 2c 20 20 74 68 | 65 6e 20 74 68 65 20 66 |one, th|en the f|
|000054d0| 75 6c 6c 0d 0a 20 20 20 | 20 20 20 20 20 20 20 6e |ull.. | n|
|000054e0| 61 6d 65 73 20 6f 66 20 | 74 68 65 20 77 65 65 6b |ames of |the week|
|000054f0| 2d 64 61 79 20 61 6e 64 | 20 6d 6f 6e 74 68 20 77 |-day and| month w|
|00005500| 69 6c 6c 20 62 65 20 77 | 72 69 74 74 65 6e 2e 20 |ill be w|ritten. |
|00005510| 20 49 66 20 4d 6f 64 65 | 25 3d 31 20 74 68 65 6e | If Mode|%=1 then|
|00005520| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 6f 6e 6c 79 |.. | only|
|00005530| 20 74 68 65 20 66 69 72 | 73 74 20 74 68 72 65 65 | the fir|st three|
|00005540| 20 63 68 61 72 61 63 74 | 65 72 73 20 6f 66 20 74 | charact|ers of t|
|00005550| 68 65 20 77 65 65 6b 2d | 64 61 79 20 61 6e 64 20 |he week-|day and |
|00005560| 6d 6f 6e 74 68 20 77 69 | 6c 6c 20 62 65 0d 0a 20 |month wi|ll be.. |
|00005570| 20 20 20 20 20 20 20 20 | 20 77 72 69 74 74 65 6e | | written|
|00005580| 2e 20 20 54 68 65 20 4c | 65 6e 67 74 68 25 20 61 |. The L|ength% a|
|00005590| 72 67 75 6d 65 6e 74 20 | 69 73 20 75 73 65 64 20 |rgument |is used |
|000055a0| 74 6f 20 74 65 6c 6c 20 | 42 41 53 49 43 20 74 68 |to tell |BASIC th|
|000055b0| 65 20 74 72 75 65 20 61 | 6e 64 0d 0a 20 20 20 20 |e true a|nd.. |
|000055c0| 20 20 20 20 20 20 66 69 | 6e 61 6c 20 6c 65 6e 67 | fi|nal leng|
|000055d0| 74 68 20 6f 66 20 53 74 | 72 69 6e 67 5f 73 70 61 |th of St|ring_spa|
|000055e0| 63 65 24 20 28 54 68 69 | 73 20 77 61 79 20 79 6f |ce$ (Thi|s way yo|
|000055f0| 75 20 65 61 73 69 6c 79 | 20 67 65 74 20 72 69 64 |u easily| get rid|
|00005600| 20 6f 66 20 74 68 65 0d | 0a 20 20 20 20 20 20 20 | of the.|. |
|00005610| 20 20 20 74 72 61 69 6c | 69 6e 67 20 63 68 61 72 | trail|ing char|
|00005620| 61 63 74 65 72 73 20 61 | 66 74 65 72 20 74 68 65 |acters a|fter the|
|00005630| 20 79 65 61 72 20 73 69 | 6e 63 65 2c 20 20 74 68 | year si|nce, th|
|00005640| 65 20 61 63 74 75 61 6c | 20 20 6c 65 6e 67 74 68 |e actual| length|
|00005650| 20 20 6f 66 0d 0a 20 20 | 20 20 20 20 20 20 20 20 | of.. | |
|00005660| 53 74 72 69 6e 67 5f 73 | 70 61 63 65 24 20 77 69 |String_s|pace$ wi|
|00005670| 6c 6c 20 76 61 72 79 20 | 67 72 65 61 74 6c 79 20 |ll vary |greatly |
|00005680| 64 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 74 68 65 |dependin|g on the|
|00005690| 20 64 61 74 65 2e 29 0d | 0a 20 20 20 20 20 20 20 | date.).|. |
|000056a0| 20 20 20 4e 4f 54 45 3a | 20 20 53 74 72 69 6e 67 | NOTE:| String|
|000056b0| 5f 73 70 61 63 65 24 20 | 20 77 69 6c 6c 20 6e 65 |_space$ | will ne|
|000056c0| 76 65 72 20 62 65 20 61 | 6e 79 20 6c 6f 6e 67 65 |ver be a|ny longe|
|000056d0| 72 20 74 68 61 6e 20 33 | 30 20 63 68 61 72 61 63 |r than 3|0 charac|
|000056e0| 74 65 72 73 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ters.. | |
|000056f0| 6f 66 20 6c 65 6e 67 74 | 68 2e 0d 0a 0d 0a 20 20 |of lengt|h..... |
|00005700| 20 20 20 20 20 20 20 20 | 45 78 61 6d 70 6c 65 3a | |Example:|
|00005710| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 44 24 3d 73 |.. | D$=s|
|00005720| 70 61 63 65 24 28 33 30 | 29 3a 6c 25 3d 30 3a 6d |pace$(30|):l%=0:m|
|00005730| 6f 64 65 25 3d 30 3a 63 | 61 6c 6c 20 64 61 74 65 |ode%=0:c|all date|
|00005740| 73 74 72 28 64 24 2c 6c | 25 2c 6d 6f 64 65 25 29 |str(d$,l|%,mode%)|
|00005750| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 69 66 20 6c |.. | if l|
|00005760| 25 3d 30 20 74 68 65 6e | 20 70 72 69 6e 74 20 22 |%=0 then| print "|
|00005770| 4e 6f 74 20 65 6e 6f 75 | 67 68 20 73 70 61 63 65 |Not enou|gh space|
|00005780| 20 69 6e 20 44 24 21 22 | 3a 73 74 6f 70 0d 0a 20 | in D$!"|:stop.. |
|00005790| 20 20 20 20 20 20 20 20 | 20 64 24 3d 6c 65 66 74 | | d$=left|
|000057a0| 28 64 24 2c 6c 25 29 3a | 70 72 69 6e 74 20 22 54 |(d$,l%):|print "T|
|000057b0| 6f 64 61 79 20 69 73 20 | 22 3b 64 24 0d 0a 20 20 |oday is |";d$.. |
|000057c0| 20 20 20 20 20 20 20 20 | 44 24 3d 73 70 61 63 65 | |D$=space|
|000057d0| 24 28 33 30 29 3a 6c 25 | 3d 30 3a 6d 6f 64 65 25 |$(30):l%|=0:mode%|
|000057e0| 3d 31 3a 63 61 6c 6c 20 | 64 61 74 65 73 74 72 28 |=1:call |datestr(|
|000057f0| 64 24 2c 6c 25 2c 6d 6f | 64 65 25 29 0d 0a 20 20 |d$,l%,mo|de%).. |
|00005800| 20 20 20 20 20 20 20 20 | 69 66 20 6c 25 3d 30 20 | |if l%=0 |
|00005810| 74 68 65 6e 20 70 72 69 | 6e 74 20 22 4e 6f 74 20 |then pri|nt "Not |
|00005820| 65 6e 6f 75 67 68 20 73 | 70 61 63 65 20 69 6e 20 |enough s|pace in |
|00005830| 44 24 21 22 3a 73 74 6f | 70 0d 0a 20 20 20 20 20 |D$!":sto|p.. |
|00005840| 20 20 20 20 20 64 24 3d | 6c 65 66 74 28 64 24 2c | d$=|left(d$,|
|00005850| 6c 25 29 3a 70 72 69 6e | 74 20 22 54 6f 64 61 79 |l%):prin|t "Today|
|00005860| 20 69 73 20 22 3b 64 24 | 0d 0a 0d 0a 20 20 20 20 | is ";d$|.... |
|00005870| 20 20 20 20 20 20 46 75 | 6e 63 74 69 6f 6e 20 4e | Fu|nction N|
|00005880| 61 6d 65 3a 20 44 4c 58 | 4d 4f 55 53 45 0d 0a 20 |ame: DLX|MOUSE.. |
|00005890| 20 20 20 20 20 20 20 20 | 20 41 72 67 75 6d 65 6e | | Argumen|
|000058a0| 74 73 20 20 20 20 3a 20 | 28 62 75 74 74 6f 6e 73 |ts : |(buttons|
|000058b0| 25 29 0d 0a 20 20 20 20 | 20 20 20 20 20 20 54 79 |%).. | Ty|
|000058c0| 70 65 20 20 20 20 20 20 | 20 20 20 3a 20 4d 6f 75 |pe | : Mou|
|000058d0| 73 65 20 73 75 70 70 6f | 72 74 0d 0a 20 20 20 20 |se suppo|rt.. |
|000058e0| 20 20 20 20 20 20 50 75 | 72 70 6f 73 65 20 20 20 | Pu|rpose |
|000058f0| 20 20 20 3a 20 52 65 73 | 65 74 73 20 6d 6f 75 73 | : Res|ets mous|
|00005900| 65 20 61 6e 64 20 72 65 | 74 75 72 6e 73 20 74 68 |e and re|turns th|
|00005910| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 62 75 74 74 |e number| of butt|
|00005920| 6f 6e 73 2e 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |ons.....| |
|00005930| 20 20 44 65 73 63 72 69 | 70 74 69 6f 6e 20 20 3a | Descri|ption :|
|00005940| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 54 68 69 73 |.. | This|
|00005950| 20 66 75 6e 63 74 69 6f | 6e 20 70 65 72 66 6f 72 | functio|n perfor|
|00005960| 6d 73 20 74 68 72 65 65 | 20 74 61 73 6b 73 2e 20 |ms three| tasks. |
|00005970| 20 46 69 72 73 74 2c 20 | 20 69 74 20 63 68 65 63 | First, | it chec|
|00005980| 6b 73 20 74 6f 20 73 65 | 65 20 20 69 66 0d 0a 20 |ks to se|e if.. |
|00005990| 20 20 20 20 20 20 20 20 | 20 74 68 65 20 6d 6f 75 | | the mou|
|000059a0| 73 65 20 69 73 20 69 6e | 73 74 61 6c 6c 65 64 20 |se is in|stalled |
|000059b0| 62 79 20 61 74 74 65 6d | 70 74 69 6e 67 20 74 6f |by attem|pting to|
|000059c0| 20 72 65 73 65 74 20 69 | 74 2e 20 49 66 20 6d 6f | reset i|t. If mo|
|000059d0| 75 73 65 20 69 73 20 6e | 6f 74 0d 0a 20 20 20 20 |use is n|ot.. |
|000059e0| 20 20 20 20 20 20 61 76 | 61 69 6c 61 62 6c 65 20 | av|ailable |
|000059f0| 20 74 68 65 6e 20 20 62 | 75 74 74 6f 6e 73 25 20 | then b|uttons% |
|00005a00| 3d 20 30 20 6f 74 68 65 | 72 77 69 73 65 20 69 74 |= 0 othe|rwise it|
|00005a10| 20 77 69 6c 6c 20 72 65 | 74 75 72 6e 20 74 68 65 | will re|turn the|
|00005a20| 20 6e 75 6d 62 65 72 0d | 0a 20 20 20 20 20 20 20 | number.|. |
|00005a30| 20 20 20 6f 66 20 61 76 | 61 69 6c 61 62 6c 65 20 | of av|ailable |
|00005a40| 62 75 74 74 6f 6e 73 2e | 20 53 65 63 6f 6e 64 2c |buttons.| Second,|
|00005a50| 20 64 65 70 65 6e 64 69 | 6e 67 20 69 66 20 6d 6f | dependi|ng if mo|
|00005a60| 75 73 65 20 69 73 20 61 | 76 61 69 6c 61 62 6c 65 |use is a|vailable|
|00005a70| 2c 20 69 74 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |, it.. | |
|00005a80| 73 65 74 73 20 61 6e 20 | 69 6e 74 65 72 6e 61 6c |sets an |internal|
|00005a90| 20 60 73 77 69 74 63 68 | 27 20 75 73 65 64 2c 20 | `switch|' used, |
|00005aa0| 20 69 6e 74 65 72 6e 61 | 6c 6c 79 2c 20 20 62 79 | interna|lly, by|
|00005ab0| 20 42 41 53 44 4c 58 20 | 66 75 6e 63 74 69 6f 6e | BASDLX |function|
|00005ac0| 73 0d 0a 20 20 20 20 20 | 20 20 20 20 20 74 6f 20 |s.. | to |
|00005ad0| 74 65 6c 6c 20 69 66 20 | 6d 6f 75 73 65 20 73 68 |tell if |mouse sh|
|00005ae0| 6f 75 6c 64 20 62 65 20 | 73 75 70 70 6f 72 74 65 |ould be |supporte|
|00005af0| 64 2e 20 20 54 68 69 72 | 64 2c 20 69 66 20 79 6f |d. Thir|d, if yo|
|00005b00| 75 20 73 65 74 20 62 75 | 74 74 6f 6e 73 25 0d 0a |u set bu|ttons%..|
|00005b10| 20 20 20 20 20 20 20 20 | 20 20 3d 20 2d 31 20 62 | | = -1 b|
|00005b20| 65 66 6f 72 65 20 63 61 | 6c 6c 69 6e 67 20 74 68 |efore ca|lling th|
|00005b30| 65 20 66 75 6e 63 74 69 | 6f 6e 20 69 74 20 77 69 |e functi|on it wi|
|00005b40| 6c 6c 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |ll autom|atically|
|00005b50| 20 60 6c 6f 63 6b 2d 6f | 75 74 27 0d 0a 20 20 20 | `lock-o|ut'.. |
|00005b60| 20 20 20 20 20 20 20 74 | 68 65 20 75 73 65 20 6f | t|he use o|
|00005b70| 66 20 74 68 65 20 6d 6f | 75 73 65 20 62 79 20 61 |f the mo|use by a|
|00005b80| 6e 79 20 66 75 6e 63 74 | 69 6f 6e 20 69 6e 20 42 |ny funct|ion in B|
|00005b90| 41 53 44 4c 58 2e 20 28 | 6f 6e 65 20 6d 61 79 20 |ASDLX. (|one may |
|00005ba0| 6f 76 65 72 72 69 64 65 | 0d 0a 20 20 20 20 20 20 |override|.. |
|00005bb0| 20 20 20 20 61 20 66 6f | 72 63 65 64 20 6c 6f 63 | a fo|rced loc|
|00005bc0| 6b 2d 6f 75 74 20 6f 72 | 20 66 6f 72 63 65 20 61 |k-out or| force a|
|00005bd0| 20 6d 6f 75 73 65 20 72 | 65 73 65 74 20 20 66 72 | mouse r|eset fr|
|00005be0| 6f 6d 20 20 74 68 65 20 | 20 6b 65 79 62 6f 61 72 |om the | keyboar|
|00005bf0| 64 20 20 62 79 0d 0a 20 | 20 20 20 20 20 20 20 20 |d by.. | |
|00005c00| 20 70 72 65 73 73 69 6e | 67 20 20 74 68 65 20 20 | pressin|g the |
|00005c10| 5b 43 74 72 6c 5d 2d 5b | 42 61 63 6b 73 70 61 63 |[Ctrl]-[|Backspac|
|00005c20| 65 5d 20 6b 65 79 73 20 | 74 6f 67 65 74 68 65 72 |e] keys |together|
|00005c30| 20 77 68 69 6c 65 20 69 | 6e 73 69 64 65 20 6f 66 | while i|nside of|
|00005c40| 20 61 0d 0a 20 20 20 20 | 20 20 20 20 20 20 42 41 | a.. | BA|
|00005c50| 53 44 4c 58 20 66 75 6e | 63 74 69 6f 6e 20 74 68 |SDLX fun|ction th|
|00005c60| 61 74 20 73 75 70 70 6f | 72 74 73 20 61 20 6d 6f |at suppo|rts a mo|
|00005c70| 75 73 65 2e 0d 0a 0d 0a | 0d 0a 0d 0a 20 20 20 20 |use.....|.... |
|00005c80| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c90| 2d 2d 2d 20 42 41 53 44 | 4c 58 20 20 20 56 65 72 |--- BASD|LX Ver|
|00005ca0| 73 69 6f 6e 20 31 2e 36 | 20 20 20 53 65 70 74 65 |sion 1.6| Septe|
|00005cb0| 6d 62 65 72 20 31 39 38 | 37 20 2d 2d 2d 0d 0a 0c |mber 198|7 ---...|
|00005cc0| 0d 0a 0d 0a 0d 0a 0d 0a | 0d 0a 0d 0a 20 20 20 20 |........|.... |
|00005cd0| 20 20 20 20 20 20 20 20 | 42 41 53 44 4c 58 20 28 | |BASDLX (|
|00005ce0| 43 29 20 43 6f 70 79 72 | 69 67 68 74 20 31 39 38 |C) Copyr|ight 198|
|00005cf0| 36 2c 31 39 38 37 20 42 | 79 20 47 75 73 74 61 76 |6,1987 B|y Gustav|
|00005d00| 6f 20 48 2e 20 56 65 72 | 64 75 6e 20 20 50 61 67 |o H. Ver|dun Pag|
|00005d10| 65 20 31 31 0d 0a 0d 0a | 20 20 20 20 20 20 20 20 |e 11....| |
|00005d20| 20 20 46 75 6e 63 74 69 | 6f 6e 20 4e 61 6d 65 3a | Functi|on Name:|
|00005d30| 20 44 4c 58 4d 4f 55 53 | 45 20 28 43 6f 6e 74 69 | DLXMOUS|E (Conti|
|00005d40| 6e 75 65 64 29 0d 0a 0d | 0a 20 20 20 20 20 20 20 |nued)...|. |
|00005d50| 20 20 20 43 75 72 72 65 | 6e 74 6c 79 2c 20 20 6f | Curre|ntly, o|
|00005d60| 6e 6c 79 20 47 45 54 53 | 54 52 44 20 73 75 70 70 |nly GETS|TRD supp|
|00005d70| 6f 72 74 73 20 74 68 65 | 20 75 73 65 20 6f 66 20 |orts the| use of |
|00005d80| 61 20 6d 6f 75 73 65 2c | 20 20 62 75 74 20 20 74 |a mouse,| but t|
|00005d90| 68 65 72 65 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |here.. | |
|00005da0| 77 69 6c 6c 20 62 65 20 | 73 65 76 65 72 61 6c 20 |will be |several |
|00005db0| 6f 74 68 65 72 20 66 75 | 6e 63 74 69 6f 6e 73 2c |other fu|nctions,|
|00005dc0| 20 20 73 6f 6f 6e 20 74 | 6f 20 62 65 20 72 65 6c | soon t|o be rel|
|00005dd0| 65 61 73 65 64 2c 20 20 | 74 68 61 74 20 77 69 6c |eased, |that wil|
|00005de0| 6c 0d 0a 20 20 20 20 20 | 20 20 20 20 20 61 6c 73 |l.. | als|
|00005df0| 6f 20 73 75 70 70 6f 72 | 74 20 61 20 6d 6f 75 73 |o suppor|t a mous|
|00005e00| 65 2e 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |e..... | |
|00005e10| 45 78 61 6d 70 6c 65 3a | 0d 0a 20 20 20 20 20 20 |Example:|.. |
|00005e20| 20 20 20 20 63 61 6c 6c | 20 64 6c 78 6d 6f 75 73 | call| dlxmous|
|00005e30| 65 28 62 25 29 0d 0a 20 | 20 20 20 20 20 20 20 20 |e(b%).. | |
|00005e40| 20 70 72 69 6e 74 20 22 | 59 6f 75 20 68 61 76 65 | print "|You have|
|00005e50| 20 22 3b 62 25 3b 22 6d | 6f 75 73 65 20 62 75 74 | ";b%;"m|ouse but|
|00005e60| 74 6f 6e 73 20 61 76 61 | 69 6c 61 62 6c 65 2e 22 |tons ava|ilable."|
|00005e70| 0d 0a 0d 0a 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005e80| 46 75 6e 63 74 69 6f 6e | 20 4e 61 6d 65 3a 20 47 |Function| Name: G|
|00005e90| 45 54 53 54 52 44 0d 0a | 20 20 20 20 20 20 20 20 |ETSTRD..| |
|00005ea0| 20 20 41 72 67 75 6d 65 | 6e 74 73 20 20 20 20 3a | Argume|nts :|
|00005eb0| 20 28 73 74 72 69 6e 67 | 24 2c 6c 65 6e 67 74 68 | (string|$,length|
|00005ec0| 25 2c 76 61 6c 69 64 6b | 65 79 73 24 2c 5b 63 6f |%,validk|eys$,[co|
|00005ed0| 6c 6f 72 25 5d 2c 6d 6f | 64 65 25 29 0d 0a 20 20 |lor%],mo|de%).. |
|00005ee0| 20 20 20 20 20 20 20 20 | 54 79 70 65 20 20 20 20 | |Type |
|00005ef0| 20 20 20 20 20 3a 20 53 | 74 72 69 6e 67 2f 44 61 | : S|tring/Da|
|00005f00| 74 61 20 65 6e 74 72 79 | 20 65 6e 68 61 6e 63 65 |ta entry| enhance|
|00005f10| 6d 65 6e 74 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |ment.. | |
|00005f20| 50 75 72 70 6f 73 65 20 | 20 20 20 20 3a 20 54 68 |Purpose | : Th|
|00005f30| 69 73 20 20 66 75 6e 63 | 74 69 6f 6e 20 61 63 63 |is func|tion acc|
|00005f40| 65 70 74 73 20 69 6e 70 | 75 74 20 66 72 6f 6d 20 |epts inp|ut from |
|00005f50| 74 68 65 20 6b 65 79 62 | 6f 61 72 64 20 20 61 6e |the keyb|oard an|
|00005f60| 64 0d 0a 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |d.. | |
|00005f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 74 6f 72 | | stor|
|00005f80| 65 73 20 20 69 74 20 20 | 69 6e 20 20 74 68 65 20 |es it |in the |
|00005f90| 20 53 74 72 69 6e 67 24 | 20 61 72 67 75 6d 65 6e | String$| argumen|
|00005fa0| 74 20 61 6c 6c 6f 77 69 | 6e 67 20 74 68 65 0d 0a |t allowi|ng the..|
|00005fb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005fc0| 20 20 20 20 20 20 20 20 | 20 75 73 65 20 6f 66 20 | | use of |
|00005fd0| 73 74 61 6e 64 61 72 64 | 20 65 64 69 74 69 6e 67 |standard| editing|
|00005fe0| 20 63 6f 6d 6d 61 6e 64 | 73 2e 0d 0a 0d 0a 20 20 | command|s..... |
|00005ff0| 20 20 20 20 20 20 20 20 | 44 65 73 63 72 69 70 74 | |Descript|
|00006000| 69 6f 6e 20 20 3a 0d 0a | 20 20 20 20 20 20 20 20 |ion :..| |
|00006010| 20 20 53 74 72 69 6e 67 | 24 2c 20 20 54 68 69 73 | String|$, This|
|00006020| 20 69 73 20 74 68 65 20 | 73 70 61 63 65 20 77 68 | is the |space wh|
|00006030| 65 72 65 20 74 68 65 20 | 69 6e 70 75 74 20 64 61 |ere the |input da|
|00006040| 74 61 20 77 69 6c 6c 20 | 62 65 20 20 73 74 6f 72 |ta will |be stor|
|00006050| 65 64 2e 0d 0a 20 20 20 | 20 20 20 20 20 20 20 54 |ed... | T|
|00006060| 68 65 20 20 66 69 65 6c | 64 20 20 73 69 7a 65 20 |he fiel|d size |
|00006070| 20 6f 66 20 20 74 68 65 | 20 69 6e 70 75 74 20 64 | of the| input d|
|00006080| 61 74 61 20 77 69 6c 6c | 20 62 65 20 73 65 74 20 |ata will| be set |
|00006090| 74 6f 20 74 68 65 20 6c | 65 6e 67 74 68 20 6f 66 |to the l|ength of|
|000060a0| 0d 0a 20 20 20 20 20 20 | 20 20 20 20 74 68 69 73 |.. | this|
|000060b0| 20 73 74 72 69 6e 67 2e | 20 20 49 66 20 74 68 65 | string.| If the|
|000060c0| 72 65 20 69 73 20 61 6c | 72 65 61 64 79 20 73 6f |re is al|ready so|
|000060d0| 6d 65 20 64 61 74 61 20 | 69 6e 20 74 68 65 20 73 |me data |in the s|
|000060e0| 74 72 69 6e 67 20 69 74 | 20 77 69 6c 6c 0d 0a 20 |tring it| will.. |
|000060f0| 20 20 20 20 20 20 20 20 | 20 6e 6f 74 20 62 65 20 | | not be |
|00006100| 65 72 61 73 65 64 2e 20 | 4a 75 73 74 20 62 65 20 |erased. |Just be |
|00006110| 73 75 72 65 20 74 6f 20 | 73 65 74 20 74 68 65 20 |sure to |set the |
|00006120| 6c 65 6e 67 74 68 20 74 | 6f 20 74 68 65 20 70 72 |length t|o the pr|
|00006130| 6f 70 65 72 20 76 61 6c | 75 65 0d 0a 20 20 20 20 |oper val|ue.. |
|00006140| 20 20 20 20 20 20 74 6f | 20 20 6c 65 74 20 20 47 | to| let G|
|00006150| 45 54 53 54 52 44 20 20 | 6b 6e 6f 77 20 20 74 68 |ETSTRD |know th|
|00006160| 61 74 20 74 68 65 72 65 | 20 69 73 20 61 6c 72 65 |at there| is alre|
|00006170| 61 64 79 20 64 61 74 61 | 20 69 6e 20 74 68 65 20 |ady data| in the |
|00006180| 53 74 72 69 6e 67 24 0d | 0a 20 20 20 20 20 20 20 |String$.|. |
|00006190| 20 20 20 76 61 72 69 61 | 62 6c 65 20 74 68 61 74 | varia|ble that|
|000061a0| 20 69 73 20 72 65 61 64 | 79 20 74 6f 20 62 65 20 | is read|y to be |
|000061b0| 65 64 69 74 65 64 2e 20 | 20 44 75 65 20 74 6f 20 |edited. | Due to |
|000061c0| 74 68 65 20 6c 69 6d 69 | 74 61 74 69 6f 6e 73 20 |the limi|tations |
|000061d0| 74 68 61 74 0d 0a 20 20 | 20 20 20 20 20 20 20 20 |that.. | |
|000061e0| 42 41 53 49 43 20 20 69 | 6d 70 6f 73 65 73 20 20 |BASIC i|mposes |
|000061f0| 6f 6e 20 61 73 73 65 6d | 62 6c 79 20 6c 61 6e 67 |on assem|bly lang|
|00006200| 75 61 67 65 20 77 69 74 | 68 20 76 61 72 69 61 62 |uage wit|h variab|
|00006210| 6c 65 73 2c 20 20 74 68 | 65 20 53 74 72 69 6e 67 |les, th|e String|
|00006220| 24 0d 0a 20 20 20 20 20 | 20 20 20 20 20 76 61 72 |$.. | var|
|00006230| 69 61 62 6c 65 20 6d 75 | 73 74 20 62 65 20 66 69 |iable mu|st be fi|
|00006240| 6c 6c 65 64 20 69 6e 20 | 74 6f 20 74 68 65 20 6d |lled in |to the m|
|00006250| 61 78 69 6d 75 6d 20 73 | 69 7a 65 20 6f 66 20 74 |aximum s|ize of t|
|00006260| 68 65 20 66 69 65 6c 64 | 2e 0d 0a 0d 0a 20 20 20 |he field|..... |
|00006270| 20 20 20 20 20 20 20 4c | 65 6e 67 74 68 25 2c 20 | L|ength%, |
|00006280| 20 49 66 20 79 6f 75 20 | 68 61 76 65 20 61 20 73 | If you |have a s|
|00006290| 74 72 69 6e 67 20 6c 65 | 6e 67 74 68 20 74 68 61 |tring le|ngth tha|
|000062a0| 74 20 69 73 20 20 73 68 | 6f 72 74 65 72 20 20 74 |t is sh|orter t|
|000062b0| 68 61 6e 20 20 74 68 65 | 0d 0a 20 20 20 20 20 20 |han the|.. |
|000062c0| 20 20 20 20 66 69 65 6c | 64 20 73 69 7a 65 20 74 | fiel|d size t|
|000062d0| 68 61 74 20 79 6f 75 20 | 68 61 76 65 20 61 6c 6c |hat you |have all|
|000062e0| 6f 63 61 74 65 64 20 66 | 6f 72 20 74 68 65 20 64 |ocated f|or the d|
|000062f0| 61 74 61 2c 20 20 47 45 | 54 53 54 52 44 20 77 69 |ata, GE|TSTRD wi|
|00006300| 6c 6c 20 62 65 0d 0a 20 | 20 20 20 20 20 20 20 20 |ll be.. | |
|00006310| 20 61 62 6c 65 20 74 6f | 20 6b 6e 6f 77 20 61 6e | able to| know an|
|00006320| 64 20 75 70 6f 6e 20 72 | 65 74 75 72 6e 20 74 65 |d upon r|eturn te|
|00006330| 6c 6c 20 79 6f 75 20 74 | 68 65 20 61 63 74 75 61 |ll you t|he actua|
|00006340| 6c 20 20 6c 65 6e 67 74 | 68 20 20 6f 66 20 20 74 |l lengt|h of t|
|00006350| 68 65 0d 0a 20 20 20 20 | 20 20 20 20 20 20 73 74 |he.. | st|
|00006360| 72 69 6e 67 2e 20 20 54 | 68 69 73 20 20 6d 61 6b |ring. T|his mak|
|00006370| 65 73 20 69 74 20 65 61 | 73 79 20 74 6f 20 72 65 |es it ea|sy to re|
|00006380| 6d 6f 76 65 20 74 68 65 | 20 74 72 61 69 6c 69 6e |move the| trailin|
|00006390| 67 20 73 70 61 63 65 73 | 20 69 6e 20 74 68 65 0d |g spaces| in the.|
|000063a0| 0a 20 20 20 20 20 20 20 | 20 20 20 53 74 72 69 6e |. | Strin|
|000063b0| 67 24 20 69 66 20 74 68 | 65 79 20 61 72 65 20 20 |g$ if th|ey are |
|000063c0| 6e 6f 74 20 20 69 6d 70 | 6f 72 74 61 6e 74 2e 20 |not imp|ortant. |
|000063d0| 20 41 20 20 4c 65 6e 67 | 74 68 25 20 20 6f 66 20 | A Leng|th% of |
|000063e0| 20 7a 65 72 6f 20 20 74 | 65 6c 6c 73 0d 0a 20 20 | zero t|ells.. |
|000063f0| 20 20 20 20 20 20 20 20 | 47 45 54 53 54 52 44 20 | |GETSTRD |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.