home *** CD-ROM | disk | FTP | other *** search
-
- * Program..: DISKMENU.PRG
- * Author...: SATURIN E.THOMAS
- * Date.....: 05/21/86
- * Notice...: Copyright (c) 1986, SATURIN E.THOMAS, All Rights Reserved
- * Notes....:
- * Reserved.: selectnum
- *
-
- SET TALK OFF
- SET BELL OFF
- SET STATUS ON
- SET ESCAPE OFF
- SET CONFIRM ON
- SET COLOR TO W+/BR,G+/GR,N
- USE DISK INDEX DISKSORT
-
- DO WHILE .T.
-
- * ---Display menu options, centered on the screen.
- * draw menu border and print heading
- CLEAR
- @ 2, 0 TO 19,79 DOUBLE
- @ 3, 8 SAY [S A T U R I N ' S D B A S E I I I + D I S K C A T A L O G]
- @ 4,1 TO 4,78 DOUBLE
- * ---display detail lines
- @ 7,28 SAY [1. Add Disk Information]
- @ 8,28 SAY [2. Change Disk Data]
- @ 9,28 SAY [3. Remove Information]
- @ 10,28 SAY [4. Display Data]
- @ 11,28 SAY [5. Print Report]
- @ 12,28 SAY [6. Print Labels]
- @ 13,28 SAY [7. Eject Printer Page]
- @ 14,28 SAY [8. Display Disk Directory]
- @ 15,28 SAY [9. Quit To Dos]
- @ 17, 28 SAY '0. EXIT'
- STORE 0 TO selectnum
- @ 19,33 SAY " select "
- @ 19,42 GET selectnum PICTURE "9" RANGE 0,9
- READ
-
- DO CASE
- CASE selectnum = 0
- SET BELL ON
- SET TALK ON
- CLEAR ALL
- RETURN
-
- CASE selectnum = 1
- * DO Add Disk Information
- SET FORMAT TO DISKSCRN
- APPEND
- SET FORMAT TO
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
-
- CASE selectnum = 2
- * DO Change Disk Data
- SET FORMAT TO DISKSCRN
- EDIT
- SET FORMAT TO
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
-
- CASE selectnum = 3
- * DO Remove Information
- SET TALK ON
- CLEAR
- @ 2,0 SAY ' '
- ? 'PACKING DATABASE TO REMOVE RECORDS MARKED FOR DELETION'
- PACK
- SET TALK OFF
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
-
- CASE selectnum = 4
- * DO Display Data
- BROWSE
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
-
- CASE selectnum = 5
- * DO Print Report
- REPORT FORM DISKREPT TO PRINT
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
-
- CASE selectnum = 6
- * DO Print Labels
- LABEL FORM DISKLBL TO PRINT
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
-
- CASE selectnum = 7
- * DO Eject Printer Page
- EJECT
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
-
- CASE selectnum = 8
- * DO Display Disk Directory
- DIR *.*
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
-
- CASE selectnum = 9
- * DO Quit To Dos
- QUIT
- SET CONFIRM OFF
- STORE ' ' TO wait_subst
- @ 23,0 SAY 'Press any key to continue...' GET wait_subst
- READ
- SET CONFIRM ON
- ENDCASE
-
- ENDDO T
- RETURN
- * EOF: DISKMENU.PRG