home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1993-02-25 | 1.4 KB | 46 lines |
- 'this one didn't get very far, did it?
- '
- Rem: a$(n)=disk contents a(n)=amount of disks
- Dim A$(1000) : Dim A(1000)
- Global A$(),A()
- Rem:^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- BEG:
- Curs Off : Hide On : Cls 0
- RASTER_BACKSCR
- Home
- Pen 2 : Paper 0 : Under On : Centre "THE DISK LISTER V1.0 Public Domain"
- Under Off
- Pen 5
- Locate 0,6 : Centre "PRESS 1 TO VIEW COMPLETE LIST"
- Print : Print : Centre "PRESS 2 TO ENTER MORE DATA"
- Print : Print : Centre "PRESS 3 TO SAVE NEW DATA"
- Print : Print : Centre "PRESS 4 TO LOAD A NEW LIST"
- Rem:^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- KEY_LOOP:
- K$="" : While K$="" : K$=Inkey$ : Wend
- If K$="2" Then ENTER_DATA : Goto BEG
- Goto KEY_LOOP
- Rem:^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Procedure ENTER_DATA
- ST:
- Cls 0 : Hide On : Curs On : Pen 5
- Print : Print : Centre "Enter new disk details & press Return"
- Locate 10,0 : Under On : Centre "Contents of disk:" : Under Off
- Print : Print : Input CON$
- If Len(CON$)<39 Then Goto JJJ
- Print : Print : Pen 3 : Curs Off : Centre "SORRY MAKE CONTENTS LINE SHORTER!" : Print : Centre " PRESS A KEY"
- Clear Key : Wait Key : Goto ST
- JJJ:
- A$(C)=CON$
- Cls 0 : Print : Print : Centre "How many disks?"
- Print : Print : Input HOW
- A(C)=HOW
- End Proc
- Procedure RASTER_BACKSCR
- Colour 0,$F00
- Colour Back $F00
- Set Rainbow 0,0,144,"(9,-1,16)","","(9,1,16)"
- Rainbow 0,9,Y Hard(0,0),128
- Set Rainbow 1,0,80,"(5,1,16)","",""
- Rainbow 1,0,Y Hard(0,128),73
- End Proc