Home » Archimedes archive » Zipped Apps » Squirrel » squirrel/!Sqlimport/!Run

squirrel/!Sqlimport/!Run

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Zipped Apps » Squirrel
Filename: squirrel/!Sqlimport/!Run
Read OK:
File size: 0211 bytes
Load address: 0000
Exec address: 0000
File contents
| !SqlImport version 2.07 (27 Apr 1994)
|
if "<System$Path>" = "" then Error 0 System resources cannot be found
if "<Squirrel$Dir>" = "" then Error 0 !Squirrel has not been seen
Set File$Type_DB7 Squirrel
WimpSlot -min 160K -max 160K
IconSprites <Obey$Dir>.!Sprites
RMEnsure FPEmulator 0.00 rmload System:Modules.FPEmulator
RMEnsure SharedCLibrary 3.50 RMLoad System:modules.CLib
RMEnsure SharedCLibrary 3.50 Error You need SharedCLibrary 3.50 or later
Set SqlImport$Dir <Obey$Dir>
WimpSlot -min 160k
Run <Obey$Dir>.!RunImage %*0
00000000  7c 20 21 53 71 6c 49 6d  70 6f 72 74 20 76 65 72  || !SqlImport ver|
00000010  73 69 6f 6e 20 32 2e 30  37 20 28 32 37 20 41 70  |sion 2.07 (27 Ap|
00000020  72 20 31 39 39 34 29 0a  7c 0a 69 66 20 22 3c 53  |r 1994).|.if "<S|
00000030  79 73 74 65 6d 24 50 61  74 68 3e 22 20 3d 20 22  |ystem$Path>" = "|
00000040  22 20 74 68 65 6e 20 45  72 72 6f 72 20 30 20 53  |" then Error 0 S|
00000050  79 73 74 65 6d 20 72 65  73 6f 75 72 63 65 73 20  |ystem resources |
00000060  63 61 6e 6e 6f 74 20 62  65 20 66 6f 75 6e 64 0a  |cannot be found.|
00000070  69 66 20 22 3c 53 71 75  69 72 72 65 6c 24 44 69  |if "<Squirrel$Di|
00000080  72 3e 22 20 3d 20 22 22  20 74 68 65 6e 20 45 72  |r>" = "" then Er|
00000090  72 6f 72 20 30 20 21 53  71 75 69 72 72 65 6c 20  |ror 0 !Squirrel |
000000a0  68 61 73 20 6e 6f 74 20  62 65 65 6e 20 73 65 65  |has not been see|
000000b0  6e 0a 53 65 74 20 46 69  6c 65 24 54 79 70 65 5f  |n.Set File$Type_|
000000c0  44 42 37 20 53 71 75 69  72 72 65 6c 0a 57 69 6d  |DB7 Squirrel.Wim|
000000d0  70 53 6c 6f 74 20 2d 6d  69 6e 20 31 36 30 4b 20  |pSlot -min 160K |
000000e0  2d 6d 61 78 20 31 36 30  4b 0a 49 63 6f 6e 53 70  |-max 160K.IconSp|
000000f0  72 69 74 65 73 20 3c 4f  62 65 79 24 44 69 72 3e  |rites <Obey$Dir>|
00000100  2e 21 53 70 72 69 74 65  73 0a 52 4d 45 6e 73 75  |.!Sprites.RMEnsu|
00000110  72 65 20 46 50 45 6d 75  6c 61 74 6f 72 20 30 2e  |re FPEmulator 0.|
00000120  30 30 20 72 6d 6c 6f 61  64 20 53 79 73 74 65 6d  |00 rmload System|
00000130  3a 4d 6f 64 75 6c 65 73  2e 46 50 45 6d 75 6c 61  |:Modules.FPEmula|
00000140  74 6f 72 0a 52 4d 45 6e  73 75 72 65 20 53 68 61  |tor.RMEnsure Sha|
00000150  72 65 64 43 4c 69 62 72  61 72 79 20 33 2e 35 30  |redCLibrary 3.50|
00000160  20 52 4d 4c 6f 61 64 20  53 79 73 74 65 6d 3a 6d  | RMLoad System:m|
00000170  6f 64 75 6c 65 73 2e 43  4c 69 62 0a 52 4d 45 6e  |odules.CLib.RMEn|
00000180  73 75 72 65 20 53 68 61  72 65 64 43 4c 69 62 72  |sure SharedCLibr|
00000190  61 72 79 20 33 2e 35 30  20 45 72 72 6f 72 20 59  |ary 3.50 Error Y|
000001a0  6f 75 20 6e 65 65 64 20  53 68 61 72 65 64 43 4c  |ou need SharedCL|
000001b0  69 62 72 61 72 79 20 33  2e 35 30 20 6f 72 20 6c  |ibrary 3.50 or l|
000001c0  61 74 65 72 0a 53 65 74  20 53 71 6c 49 6d 70 6f  |ater.Set SqlImpo|
000001d0  72 74 24 44 69 72 20 3c  4f 62 65 79 24 44 69 72  |rt$Dir <Obey$Dir|
000001e0  3e 0a 57 69 6d 70 53 6c  6f 74 20 2d 6d 69 6e 20  |>.WimpSlot -min |
000001f0  31 36 30 6b 0a 52 75 6e  20 3c 4f 62 65 79 24 44  |160k.Run <Obey$D|
00000200  69 72 3e 2e 21 52 75 6e  49 6d 61 67 65 20 25 2a  |ir>.!RunImage %*|
00000210  30                                                |0|
00000211