Home » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403.adf » Disk1Mar94 » !AWMar94/Goodies/Basic/!PathLib/!Help

!AWMar94/Goodies/Basic/!PathLib/!Help

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 » Recent acquisitions » Acorn ADFS disks » adfs_ArchimedesWorld_199403.adf » Disk1Mar94
Filename: !AWMar94/Goodies/Basic/!PathLib/!Help
Read OK:
File size: 07F2 bytes
Load address: 0000
Exec address: 0000
File contents
-------------------
 Library: PathLib

 Purpose: BASIC procedure library for Draw module

 Version: 1.2 (Dec 1993)

-------------------

   ************************************************************
   USAGE:

   This application is intended to  be used in exactly the same way
   as a normal Filer directory. The only difference is that objects
   stored in the directory are always referred to by the SAME pathname
   no matter where the directory itself is stored.
   
   This is invaluable for programs which have other files as input
   resources. With absolute pathnames, errors arise when the main
   program cannot find its resource files - usually because they
   have been moved. This means editing the main program which can
   be a nuisance. Use of this type of 'intelligent' directory
   removes this problem.
   
   Such directories are especially useful for the storing of BASIC
   procedure libraries:
   
   1. Double-clicking the directory icon in a Filer window causes
      it to be opened, just like a normal directory.
   
   2. Files and directories can be created and saved in the usual
      way�.
   
   3. Any BASIC procedure libraries stored in this directory can
      be loaded into your BASIC program by including the BASIC 
      statement:
   
               LIBRARY "PathLib:OS_units.<Pathname>"
   
      For example, to load library 'Paths' contained in directory
      'OS_units' :
   
               LIBRARY "PathLib:OS_units.Paths"
   
      All that is required for your program to properly locate the
      library is that the Filer must have 'seen' the directory -
      an equivalent technique is to 'Filer_Boot' the application.
   
   4. The directory can be moved around, even to different filing
      systems.Your main program will still work.
   
      All that has to be done is, immediately after moving it, 
      simply double-click the directory  icon to inform the Filer
      as to the new location.
   
  
   
   ************************************************************
00000000  0a 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |.---------------|
00000010  2d 2d 2d 2d 0a 20 4c 69  62 72 61 72 79 3a 20 50  |----. Library: P|
00000020  61 74 68 4c 69 62 0a 0a  20 50 75 72 70 6f 73 65  |athLib.. Purpose|
00000030  3a 20 42 41 53 49 43 20  70 72 6f 63 65 64 75 72  |: BASIC procedur|
00000040  65 20 6c 69 62 72 61 72  79 20 66 6f 72 20 44 72  |e library for Dr|
00000050  61 77 20 6d 6f 64 75 6c  65 0a 0a 20 56 65 72 73  |aw module.. Vers|
00000060  69 6f 6e 3a 20 31 2e 32  20 28 44 65 63 20 31 39  |ion: 1.2 (Dec 19|
00000070  39 33 29 0a 0a 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |93)..-----------|
00000080  2d 2d 2d 2d 2d 2d 2d 2d  0a 0a 20 20 20 2a 2a 2a  |--------..   ***|
00000090  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
000000c0  2a 2a 2a 2a 2a 2a 2a 2a  2a 0a 20 20 20 55 53 41  |*********.   USA|
000000d0  47 45 3a 0a 0a 20 20 20  54 68 69 73 20 61 70 70  |GE:..   This app|
000000e0  6c 69 63 61 74 69 6f 6e  20 69 73 20 69 6e 74 65  |lication is inte|
000000f0  6e 64 65 64 20 74 6f 20  20 62 65 20 75 73 65 64  |nded to  be used|
00000100  20 69 6e 20 65 78 61 63  74 6c 79 20 74 68 65 20  | in exactly the |
00000110  73 61 6d 65 20 77 61 79  0a 20 20 20 61 73 20 61  |same way.   as a|
00000120  20 6e 6f 72 6d 61 6c 20  46 69 6c 65 72 20 64 69  | normal Filer di|
00000130  72 65 63 74 6f 72 79 2e  20 54 68 65 20 6f 6e 6c  |rectory. The onl|
00000140  79 20 64 69 66 66 65 72  65 6e 63 65 20 69 73 20  |y difference is |
00000150  74 68 61 74 20 6f 62 6a  65 63 74 73 0a 20 20 20  |that objects.   |
00000160  73 74 6f 72 65 64 20 69  6e 20 74 68 65 20 64 69  |stored in the di|
00000170  72 65 63 74 6f 72 79 20  61 72 65 20 61 6c 77 61  |rectory are alwa|
00000180  79 73 20 72 65 66 65 72  72 65 64 20 74 6f 20 62  |ys referred to b|
00000190  79 20 74 68 65 20 53 41  4d 45 20 70 61 74 68 6e  |y the SAME pathn|
000001a0  61 6d 65 0a 20 20 20 6e  6f 20 6d 61 74 74 65 72  |ame.   no matter|
000001b0  20 77 68 65 72 65 20 74  68 65 20 64 69 72 65 63  | where the direc|
000001c0  74 6f 72 79 20 69 74 73  65 6c 66 20 69 73 20 73  |tory itself is s|
000001d0  74 6f 72 65 64 2e 0a 20  20 20 0a 20 20 20 54 68  |tored..   .   Th|
000001e0  69 73 20 69 73 20 69 6e  76 61 6c 75 61 62 6c 65  |is is invaluable|
000001f0  20 66 6f 72 20 70 72 6f  67 72 61 6d 73 20 77 68  | for programs wh|
00000200  69 63 68 20 68 61 76 65  20 6f 74 68 65 72 20 66  |ich have other f|
00000210  69 6c 65 73 20 61 73 20  69 6e 70 75 74 0a 20 20  |iles as input.  |
00000220  20 72 65 73 6f 75 72 63  65 73 2e 20 57 69 74 68  | resources. With|
00000230  20 61 62 73 6f 6c 75 74  65 20 70 61 74 68 6e 61  | absolute pathna|
00000240  6d 65 73 2c 20 65 72 72  6f 72 73 20 61 72 69 73  |mes, errors aris|
00000250  65 20 77 68 65 6e 20 74  68 65 20 6d 61 69 6e 0a  |e when the main.|
00000260  20 20 20 70 72 6f 67 72  61 6d 20 63 61 6e 6e 6f  |   program canno|
00000270  74 20 66 69 6e 64 20 69  74 73 20 72 65 73 6f 75  |t find its resou|
00000280  72 63 65 20 66 69 6c 65  73 20 2d 20 75 73 75 61  |rce files - usua|
00000290  6c 6c 79 20 62 65 63 61  75 73 65 20 74 68 65 79  |lly because they|
000002a0  0a 20 20 20 68 61 76 65  20 62 65 65 6e 20 6d 6f  |.   have been mo|
000002b0  76 65 64 2e 20 54 68 69  73 20 6d 65 61 6e 73 20  |ved. This means |
000002c0  65 64 69 74 69 6e 67 20  74 68 65 20 6d 61 69 6e  |editing the main|
000002d0  20 70 72 6f 67 72 61 6d  20 77 68 69 63 68 20 63  | program which c|
000002e0  61 6e 0a 20 20 20 62 65  20 61 20 6e 75 69 73 61  |an.   be a nuisa|
000002f0  6e 63 65 2e 20 55 73 65  20 6f 66 20 74 68 69 73  |nce. Use of this|
00000300  20 74 79 70 65 20 6f 66  20 27 69 6e 74 65 6c 6c  | type of 'intell|
00000310  69 67 65 6e 74 27 20 64  69 72 65 63 74 6f 72 79  |igent' directory|
00000320  0a 20 20 20 72 65 6d 6f  76 65 73 20 74 68 69 73  |.   removes this|
00000330  20 70 72 6f 62 6c 65 6d  2e 0a 20 20 20 0a 20 20  | problem..   .  |
00000340  20 53 75 63 68 20 64 69  72 65 63 74 6f 72 69 65  | Such directorie|
00000350  73 20 61 72 65 20 65 73  70 65 63 69 61 6c 6c 79  |s are especially|
00000360  20 75 73 65 66 75 6c 20  66 6f 72 20 74 68 65 20  | useful for the |
00000370  73 74 6f 72 69 6e 67 20  6f 66 20 42 41 53 49 43  |storing of BASIC|
00000380  0a 20 20 20 70 72 6f 63  65 64 75 72 65 20 6c 69  |.   procedure li|
00000390  62 72 61 72 69 65 73 3a  0a 20 20 20 0a 20 20 20  |braries:.   .   |
000003a0  31 2e 20 44 6f 75 62 6c  65 2d 63 6c 69 63 6b 69  |1. Double-clicki|
000003b0  6e 67 20 74 68 65 20 64  69 72 65 63 74 6f 72 79  |ng the directory|
000003c0  20 69 63 6f 6e 20 69 6e  20 61 20 46 69 6c 65 72  | icon in a Filer|
000003d0  20 77 69 6e 64 6f 77 20  63 61 75 73 65 73 0a 20  | window causes. |
000003e0  20 20 20 20 20 69 74 20  74 6f 20 62 65 20 6f 70  |     it to be op|
000003f0  65 6e 65 64 2c 20 6a 75  73 74 20 6c 69 6b 65 20  |ened, just like |
00000400  61 20 6e 6f 72 6d 61 6c  20 64 69 72 65 63 74 6f  |a normal directo|
00000410  72 79 2e 0a 20 20 20 0a  20 20 20 32 2e 20 46 69  |ry..   .   2. Fi|
00000420  6c 65 73 20 61 6e 64 20  64 69 72 65 63 74 6f 72  |les and director|
00000430  69 65 73 20 63 61 6e 20  62 65 20 63 72 65 61 74  |ies can be creat|
00000440  65 64 20 61 6e 64 20 73  61 76 65 64 20 69 6e 20  |ed and saved in |
00000450  74 68 65 20 75 73 75 61  6c 0a 20 20 20 20 20 20  |the usual.      |
00000460  77 61 79 9c 2e 0a 20 20  20 0a 20 20 20 33 2e 20  |way...   .   3. |
00000470  41 6e 79 20 42 41 53 49  43 20 70 72 6f 63 65 64  |Any BASIC proced|
00000480  75 72 65 20 6c 69 62 72  61 72 69 65 73 20 73 74  |ure libraries st|
00000490  6f 72 65 64 20 69 6e 20  74 68 69 73 20 64 69 72  |ored in this dir|
000004a0  65 63 74 6f 72 79 20 63  61 6e 0a 20 20 20 20 20  |ectory can.     |
000004b0  20 62 65 20 6c 6f 61 64  65 64 20 69 6e 74 6f 20  | be loaded into |
000004c0  79 6f 75 72 20 42 41 53  49 43 20 70 72 6f 67 72  |your BASIC progr|
000004d0  61 6d 20 62 79 20 69 6e  63 6c 75 64 69 6e 67 20  |am by including |
000004e0  74 68 65 20 42 41 53 49  43 20 0a 20 20 20 20 20  |the BASIC .     |
000004f0  20 73 74 61 74 65 6d 65  6e 74 3a 0a 20 20 20 0a  | statement:.   .|
00000500  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 4c  |               L|
00000510  49 42 52 41 52 59 20 22  50 61 74 68 4c 69 62 3a  |IBRARY "PathLib:|
00000520  4f 53 5f 75 6e 69 74 73  2e 3c 50 61 74 68 6e 61  |OS_units.<Pathna|
00000530  6d 65 3e 22 0a 20 20 20  0a 20 20 20 20 20 20 46  |me>".   .      F|
00000540  6f 72 20 65 78 61 6d 70  6c 65 2c 20 74 6f 20 6c  |or example, to l|
00000550  6f 61 64 20 6c 69 62 72  61 72 79 20 27 50 61 74  |oad library 'Pat|
00000560  68 73 27 20 63 6f 6e 74  61 69 6e 65 64 20 69 6e  |hs' contained in|
00000570  20 64 69 72 65 63 74 6f  72 79 0a 20 20 20 20 20  | directory.     |
00000580  20 27 4f 53 5f 75 6e 69  74 73 27 20 3a 0a 20 20  | 'OS_units' :.  |
00000590  20 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  | .              |
000005a0  20 4c 49 42 52 41 52 59  20 22 50 61 74 68 4c 69  | LIBRARY "PathLi|
000005b0  62 3a 4f 53 5f 75 6e 69  74 73 2e 50 61 74 68 73  |b:OS_units.Paths|
000005c0  22 0a 20 20 20 0a 20 20  20 20 20 20 41 6c 6c 20  |".   .      All |
000005d0  74 68 61 74 20 69 73 20  72 65 71 75 69 72 65 64  |that is required|
000005e0  20 66 6f 72 20 79 6f 75  72 20 70 72 6f 67 72 61  | for your progra|
000005f0  6d 20 74 6f 20 70 72 6f  70 65 72 6c 79 20 6c 6f  |m to properly lo|
00000600  63 61 74 65 20 74 68 65  0a 20 20 20 20 20 20 6c  |cate the.      l|
00000610  69 62 72 61 72 79 20 69  73 20 74 68 61 74 20 74  |ibrary is that t|
00000620  68 65 20 46 69 6c 65 72  20 6d 75 73 74 20 68 61  |he Filer must ha|
00000630  76 65 20 27 73 65 65 6e  27 20 74 68 65 20 64 69  |ve 'seen' the di|
00000640  72 65 63 74 6f 72 79 20  2d 0a 20 20 20 20 20 20  |rectory -.      |
00000650  61 6e 20 65 71 75 69 76  61 6c 65 6e 74 20 74 65  |an equivalent te|
00000660  63 68 6e 69 71 75 65 20  69 73 20 74 6f 20 27 46  |chnique is to 'F|
00000670  69 6c 65 72 5f 42 6f 6f  74 27 20 74 68 65 20 61  |iler_Boot' the a|
00000680  70 70 6c 69 63 61 74 69  6f 6e 2e 0a 20 20 20 0a  |pplication..   .|
00000690  20 20 20 34 2e 20 54 68  65 20 64 69 72 65 63 74  |   4. The direct|
000006a0  6f 72 79 20 63 61 6e 20  62 65 20 6d 6f 76 65 64  |ory can be moved|
000006b0  20 61 72 6f 75 6e 64 2c  20 65 76 65 6e 20 74 6f  | around, even to|
000006c0  20 64 69 66 66 65 72 65  6e 74 20 66 69 6c 69 6e  | different filin|
000006d0  67 0a 20 20 20 20 20 20  73 79 73 74 65 6d 73 2e  |g.      systems.|
000006e0  59 6f 75 72 20 6d 61 69  6e 20 70 72 6f 67 72 61  |Your main progra|
000006f0  6d 20 77 69 6c 6c 20 73  74 69 6c 6c 20 77 6f 72  |m will still wor|
00000700  6b 2e 0a 20 20 20 0a 20  20 20 20 20 20 41 6c 6c  |k..   .      All|
00000710  20 74 68 61 74 20 68 61  73 20 74 6f 20 62 65 20  | that has to be |
00000720  64 6f 6e 65 20 69 73 2c  20 69 6d 6d 65 64 69 61  |done is, immedia|
00000730  74 65 6c 79 20 61 66 74  65 72 20 6d 6f 76 69 6e  |tely after movin|
00000740  67 20 69 74 2c 20 0a 20  20 20 20 20 20 73 69 6d  |g it, .      sim|
00000750  70 6c 79 20 64 6f 75 62  6c 65 2d 63 6c 69 63 6b  |ply double-click|
00000760  20 74 68 65 20 64 69 72  65 63 74 6f 72 79 20 20  | the directory  |
00000770  69 63 6f 6e 20 74 6f 20  69 6e 66 6f 72 6d 20 74  |icon to inform t|
00000780  68 65 20 46 69 6c 65 72  0a 20 20 20 20 20 20 61  |he Filer.      a|
00000790  73 20 74 6f 20 74 68 65  20 6e 65 77 20 6c 6f 63  |s to the new loc|
000007a0  61 74 69 6f 6e 2e 0a 20  20 20 0a 20 20 0a 20 20  |ation..   .  .  |
000007b0  20 0a 20 20 20 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  | .   ***********|
000007c0  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a  |****************|
*
000007f0  2a 0a                                             |*.|
000007f2