INSERT DISKETTE INTO DRIVE B: Press any key to continue ... Command Caps COPYING DATABASE FILE TO DISKETTE Command :{C:>: Caps COpy COMPLETE Press any key to continue ... Command :<C:>: ZCREATE.DOC ================================================================================ DOCUMENTATION FOR THE CREATE DATABASE OPTION ============================================~============================== YOU WILL SEE YOU WILL DO =========================================================================== 1. The Main Menu will appear display-: ing the six menu options and the option to exit. 1. Type a 6 to create a new database and press Enter. 2. A screen will appear asking the user to type in the name of the new database to create. 2. 3. If the database does not already exist, a screen will appear asking the user if the displayed database name is the one the user wishes to create. If a database already exists by the given name, a screen will appear saying that the given database name already exists and press any key to continue and return to the Main Menu. 3. Type a Y if the displayed database name is correct and press Enter. When the database is created, a screen will appear saying 'DATABASE CREATED' and press any key to continue and return to the Main Menu. Press Enter if the displayed database name is incorrect or the user decides not to create a database. A screen will appear saying 'DATABASE NOT CREATED' and press any key to continue and return to the Main Menu. Type in the 3 character abbreviation for the quarter and the last two digits of the year of the new quarter and press enter. (AUT87 is an example of the Autumn quarter of 1987.) DATABASE CREATE PROCEDURE ENTER NEW DATABASE NAME: Command ; <c: :>: AUT88 IS THIS THE DATABASE YOU WISH TO CREATE? Command : <c: :>: AUT88 .y DATABASE CREATED Press any key to continue . . . Command !<C:>: ENTER NEW DATABASE NAME: Command AUT88 IS THIS THE DATABASE YOU WISH TO CREATE? Command l<C:>: AUT88 N DATABASE NOT CREATED Press any key to continue ... Command ~<c:>: DATABASE STRUCTURES Structure for database: A:zstudent.dbf Number of data records: 6 Date of last update 07/23/86 Field Field Name Type Width Dec 1 SSN Character 11 FNAME Character 10 Character 15 LNAME Character 4 AD DR 20 CITY Character 15 5 STATE Character 6 7 ZIP Character 5 PHONE 8 Character 12 9 DEGREE Character 20 Total 111 ** ** ~ ~ ~ ~ ~ ~ ; Structure for database: A:zfaculty.dbf Number of data records: 5 Date of last update 07/21/86 Field Field Name Type Width Dec 1 SSN Character 11 2 FNAME Character 10 3 LNAME Character 15 4 PHONE Character 4 Character 4 5 OFFNO Character 6 FACNO 3 48 ** Total ** Structure for database: A:zregis.dbf 0 Number of data records: 07/01/86 Date of last update Width Field Field Name Type Character 11 1 SSN Character 10 FNAME 4 Character 15 LNAME Character 4 4 REFNO c DEPT NAME Character J J 3 6 DEPTNO Character 7 Character CRSNO 8 3 SECNO Character 9 CRHRS Character 1 10 CRSNAME Character 12 11 FACNO Character 12 FACNAME Character 18 13 TYPE Character 1 14 COMMENTS Character 50 ~~ Total 140 ~ ~ ~ ~ ~ ~ I ~ ~ ** Dec PROGRAM PRINTOUTS =============================================================================== DOCUMENTATION OF DATABASE FILES, INDEX FILES, PROGRAM NAMES. AND FORMAT FILE NAMES USED IS THIS SYSTEM. ============================================================================== MAIN MENU - ZMMENU.PRG 1. STUDENT INFORMATION - ZSMENU.PRG Database: ZSTUDENT.DBF Index: ZS_SSN (indexed on SSN) Programs Used: ZSADD.FMT ZSCHG.FMT ZSDEL.FMT 2. FACULTY INFORMATION - ZFMENU.PRG Database: ZFACULTY.DBF Index: ZF_FACNO (indexed on FACNO) Programs Used: ZFADD.FMT ZFCHG.FMT ZFDEL.FMT 3. REGISTRATION INFORMATION - ZRMENU.PRG Database: &QTR (general) Index: &QTR (indexed on SSN+CRSNO) Report Form: TREPORT.FRM Programs Used: ZRADD.FMT ZRCHG.FMT ZRDEL.FMT ZRVIEW.PRG ZRPRINT.PRG 4. FACULTY CLASS LISTS - ZFRMENU.PRG Database: &QTR (general), TEMP1 Index: TNDX (indexed on FACNAME+CRSNO+LNAME+FNAME) Report Form: FREPORT.FRM 5. BACKUP DATABASES - ZBKUP.PRG 6. CREATE NEW DATABASE - ZCREATE.PRG * * * * * * * Program .. : Author ... : Date ..... : Notice ... : Not€:~s .... : Reserved.: SET SET SET SET BF.::T SET ZMMENU.PRG K. RENEE HARRIS 05/07/86 Copyright (c) 1986, K. RENEE HARRIS, All Rights Reserved selectnum TALK OFF BELL OFF ST ?-HUS ON E~)CAPE OFF CONF I RM ON COLOR TO G,R/G,N,N DO l'JH I U:~ • T • * * ---Display menu options, centered on the screen. draw menu border and print heading CLEP,R @ 1,25 SAY 'BALL STATE SCHOOL OF MUSIC' @ 2, 0 TO 14,79 DOUBLE @ 3,30 SAY [M A I N MEN U] @ 4,1 TO 4,78 DOUBLE * ---display detail lines @ 6,30 SAY [1. STUDENT INFORMATION] @ 7,30 SAY [2. FACULTY INFORMATION] @ 8,30 SAY [3. REGISTRATION INFORMATION] @ 9,30 SAY [4. FACULTY CLASS LISTS] @ 10,30 SAY [5. BACKUP DATABASES] @ 11,30 SAY [6. CREATE NEW DATABASE] @ 13,30 SAY '0. EXIT' STOF:E 0 TO sel ec:tnum @ 15,:::':3 SAY" selE?ct " (? 15,42 GET sE'lectnum PICTUF(E "9" R?,")NGE 0,6 READ DO criSE CASE selectnum - 0 SET BELL, ON SET TALK Dr..! CLEAR ALL RETURt\l * CASE selectnum = 1 DO STUDENT INFORMATION DO ZSMENU . PI=<G * CASE selectnum = 2 DO FACULTY INFORMATION DO ZFMENU.PHG * CASE selectnum = 3 DO REGISTRATION INFORMATION D(J ZRI'1ENU. PRG * CASE selectnum = 4 DO FACULTY LOAD REPORTS DO ZFRt1ENLJ. I:::'RG CASE selectnum = 5 * * DO DATABASE BACKUP DO ZBKUP.PRG CASE selectnum = 6 CREATE NEW DATABASE DO ZCREATE.PRG ENDCASE ENDDO T RETURN * EOF: ZMMENU.PRG * * * * * * * Program .. : Author ... : Date ..... : Notice ... : Notes .... : Reserved.: SET SET SET SET SET USE ZSMENU.PRG K. RENEE HARRIS 04/14/86 Copyriq~t (c) 1986, K. RENEE HARRIS, All Rights Reserved selectnum TAU::: OFF BELL OFF STATUS ON ESCAPE OFF CONF I F:1"1 ON ZSTUDENT INDEX ZS_SSN DO vJH I LE . T • * * ---Display menu options, centered on the screen. draw menu border and print heading CLEf)R @ 1,25 SAY 'BALL STATE SCHOOL OF MUSIC' @ 2, 0 TO 14,79 DOUBLE @ 3,22 SAY [S T U DEN T I N FOR MAT ION] @ 4,1 TO 4,78 DOUBLE * ---display detail lines @ 7,30 SAY [1. ADD INFORMATION] @ 8,30 SAY [2. CHANGE INFORMATION] @ 9,30 SAY [3. REMOVE INFORMATION] @ 10,30 SAY [4. REVIEW INFORMATION] @ 12, 30 SAY '0. EXIT' STORE 0 TO selectnum @ 14,3~~ SAY select I~ 14,42 (3ET selec:tnum PICTURE "9" F<f.)NGE 0,4 READ Ii 11 DO CASE CASE selectnum - 0 SET BELL ON SET TALK ON CLEAFi: ALL RETURN CASE selectnum :::: 1 * DO ADD INFORMATION t1AGA IN:::: ' Y , DO WHILE MAGAIN :::: 'Y' I"ISSN == CLEP,R @10,10 SAY 'PLEASE ENTER STUDENT SOCIAL SECURITY NUMBER' @10,54 GET MSSN PICTURE '999-99-9999' READ STORE SUBSTR(MSSN,I,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,8,4) TO TSSN IF TSSI\1 ::::: ' MAG?'1IN :::: '1'1' LOOP ENDIF SEEK N~)SN IF. NOr. EUF ( ) 0, 1 (, S{'tY 'STUDENT SOC I r::~l_ SECUP I TY NUi"1BEP (')LPE?mY EX: I STS ' WAIT ELSE SET FOPMA'r TO ZSADD.FMT APPEND PEPLACE SSN WITH MSSN CLOSE FORi'1AT SEl CONF I F~:1"1 OFF STORE ' , TO wait subst @ 23,0 SAY 'Press any key to continue ... ' GET wait_subst F:EAD SET CONF I Rt'l QI'.J ENDIF ENDDO (~1 CASE selectnum ::::: 2 * DO CHANGE INFORMATION MSSI'J ::::: CLEP,F: @ 10,5 SAY 'PLEASE ENTER SOCIAL SECURITY NUMBER' GET MSSN PICTURE '999PE{'~D STOPE SUBSTR(MSSN,1,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,8,4) TO TSSN IF TSSN <::> ' SEEK MSSN IF . NDT. EOF () SET FORMAT TO ISCHG.FMT EDIT CLOSE F(JF~Mf."1 T ELSE CLEAR @ 10,5 SAY 'SOCIAL SECUPITY NUMBER NOT FOUND' ENDIF ENDIF SET CONF I Rl"t OFF STORE ' , TO wait subst @ 23,0 SAY 'Press any key to continue ... ' GET wait_subst PEAD SET CONF I RI'1 ON CASE selectnum ::::: 3 * DO REMOVE INFORMATION STORE ' , ~O MANS 1"1SSN == ' SET TALK ON CLEAF.: @ 10,5 SAY' PLEASE ENTER SOCIAL SECURITY NUMBEP' GET MSSN PICTURE '999 -99-9999' READ STORE SUBSTR(MSSN,1,3)+SUBSTR(MSSN,5,2)+SUBSTP(MSSN,8,4) TO TSSN IF TSSN < >- ' SEEK MSS~-J IF. NOT. EOF ( ) SET FORMAT TO ZSDEL.FMT REr::iD IF MP,NS ::::: "y" DELETE CLEI~F< @10,5 SAY ELSE 'RECORD HAS BEEN DELETED' CLEI;F~ @10,5 SAY ENDIF EL.fiE CLEAR ",,1 (\ t::; ,:;;l\\/ 'RECORD NOT DELETED' 'c::nr" T 61 c::!:="r"III:;' T TV I\IIIMR!:="h' I\lnT I="nlll\ln' ENDIF ENDIF CLOSE FORMAT SET TALK OFF SET CONFIRM OFF STORE . . TO wait subst @ 23,0 SAY 'Press any key to continue ... READ SET CONFIRM ON GET wait subst CASE selectnum = 4 DO REVIEW INFORMATION GO TOP BROWSE SET CONFIRM OFF STORE . . TO wait subst @ 23,0 SAY 'Press any key to continue ... · GET wait_subst READ SET CONFIRM ON ENDCASE * PACK ENDDO T RETURN * EOF: ZSMENU.PRG -fi" Pr-ogram: @ "< ,_, @ "':!" ,_, , 10 @ , LL "< ._1., 36 @ "< '._, @ 6, I~ @ 6 9, @ 9 rjr'1 , , 47 10 ":;"':' ._1 ..... , 10 19 @ Si, 4:3 @ 9, 49 9, 68 9 , "75 @ @ @ 12, @ 1.2, 15 ,OJ,::: 12, "::'....J 1 ..::., ,-, :::,~:? @ @ @ @ @ 10 10 15, 18 1El, 10 .11::: ~J, Z SADD. FI'1T SAY "FIRST NAtvlE :" FNAME PICTURE ' I I t GET S?)Y "L{4ST 1\~AIVIE :" LNAME PICTURE ' ~ ~ GET S{-~Y "SOCIAl.. SECURITY NO. :" l'1t;SN fiA"Y' SfiY "ADDRESS:" I I I I {.:iDDR PICTURE ' I GET ~"3AY "C lTY: " GE"r CITY F' I CTURE ' t Sf'.:t'f "STATE:" STATE PICTURE ' ~ GET SAY "Z IF': " ZIP PICTURE '99999' GET sr·w "PHONE:" PHONE PICTURE '999/999-9999' GET SAY "DEGREE:" DEGREE PICTURE '! ~ ! I ! ! ! ! ! I I ! ! ~ ~ I ! ! ! ! ' GET S{-'lY "PRESS CTF(L -END (;FTER ENTER n-m ALL OF STUDENT' S I NFORl"lAT I ON II * Program: @ "-=!" 10 ._l" @ -~ @ ~=!' I:£! ~5 @ @ @ @ @ @ @ @ 1:1~ i~ @ @ @ @ @ .::, . .-~ ., 22 , , 6, 6, 9, 9, 9, 36 4l 10 31 10 1 ':t 4:::;' '7, 49 9, 68 9, 75 1 -, r::. 12, 10 15 :L2, 24 31 1.5, 10 1 :.'5, 18 18, 10 12, SAY GE"r S{:l\( GET SAY GET SAY GET SPiY GET SAY GET Sr:-Yl GET SAY GET Sr;Y GET SA'¥, ZSCHG. Fr'rr "FIRST NAI'"1E:" FNAME PICTURE ' I I I I I I I I I I ' "U7:)ST NAt'1E:" LNAr'"IE PI CTUF;:E '~!!!!!!!!!! I I I I ' "SOCIAL SECURITY NO.:" SSN PICTURE '999-99-9999' 11 ADDREEiS: 11 ADDF: F' I CTURE , I I I I I I I I I I I I I I I I I tIC ITY: " CITY PICTURE ' I I I I I I I I I I I I I I ' "STATE:" STATE PICTURE ' ! ! 11 ZIP: " ZIP PICTURE '99999' "PHONE:" PHONE PICTURE '999/999-9999' "DEGF:EE: " DEGREE PI CTUF<E ' ! ! ! ! I ! ! ! ! ! ! ! ! I I "PF~ESf.:; CTRL-END TO SAVE AI\lD EX IT; I I I I I I I I ' PRESS ESC TO EX IT" Pr'ogt-am: * @ @ (~ @ (~ @ @ @ @ @ @ @ (~ (§! @ 'd \!(~ @ @ :~; , 10 .-=1 , ZSDEL. Fr--lT SAY "FIRST NAr-IE:" SAY ZSTUDEh!T-- >FNAI'1E c·~ " 3, ::::;6 ,::>HY "LAST NAME:" -;,SA'y' Z STUDENT - >l_NAME 47 '-=- , (-,.-..... 6 ! 10 ,::;HY "~30Cli:;L SECURITY NO.:" -=!" J~'" SAY Z:STUDENT->SSN 6, ,_I.':'. 9 10 Sf.~Y II {\DDRESS: " 9, 19 SAY ZSTUDENT->ADDR 9, 4::~; Sr-~Y "CITY:" C? 49 S?~'Y Z STUDENT -- >C I TY 0 ,68 S?iY "ST(..iTE: II I -..J SAY ZSTUDENT->STATE 9 , "'rc::' 1:2, 1.0 Sr-W "ZIP: " 12, 15 S{W ZSTUDEN-r->ZIP .a::. . . .J SAY "PHONE:" 1:2 , .tiC:: -:!" 1"'~ L, ....1..:.. S~iY ZSTUDEI\IT··_· >PHONE 1 ~5 10 SAY "DEGFiEE: " l~j , 18 SAY lSTUDENT->DEGREE 18 , 10 SAY "I~3 THI~; THE F~EC()RD YOU WISH TO DELETE? -,.. r?,--) .1:.. •.:•• , , I ~-:I , (Y/I\I)" GET MANS PICTURE'" . * * * * * * * Program .. : Author ... : Date . . . . . : Notice ... : Notes .... : Reserved.: SET SET SET SET SET USE ZFMENU.PRG K. RENEE HARRIS 04/14/86 Copyright (c) 1986, K. RENEE HARRIS, All Rights Reserved selectnum T ?~LK OFF BELL OFF STATUS ON ESCAPE OFF C()NF I RI"1 ON ZFACULTY INDEX IF FACNO DO WHILE .T. * ---Display menu options, centered on the screen. draw menu border and print heading CLE?iR @ 1,25 SAY 'BALL STATE SCHOOL OF MUSIC' @ 2, 0 TO 14,79 DOUBLE I N FOR MAT ION] @ 3,22 SAY [F A C U L T Y @ 4,1 TO 4,78 DOUBLE * ---display det~il lines @ 7,30 SAY [1. ADD INFORMATION] @ 8,30 SAY [2. CHANGE INFORMATION] @ 9,30 SAY [3. REMOVE INFORMATION] @ 10,30 SAY [4. REVIEW INFORMATION] @ 12, 30 SAY '0. EXIT' STORE 0 TO selectnum @ 14, ::::;:::;; S(.;Y " sel ect " i3'! 14,42 GET selec:tnum PICTURE "9" R?~NGE 0,4 READ * DO CASE CASE selectnum SET BELL ON SET TAU::: ON CLE(-iR t~ILI_ RETURN ° CASE selectnum == 1 * DO ADD INFORMATION MAGt::)IN ::;, 'Y' DO WHILE MAGAIN ::::: 'Y' t'1FACNO == CLE{iR @10,10 SAY 'PLEASE ENTER FACULTY CODE NUMBER' @10,43 GET MFACNO PICTURE '999' READ IF I"IFACI'.m :;:: , 1"1AG{-iIN ::::: 'N' LOOP ENDIF SEEI< MFACNO IF. NOT. EOF ( ) CLE{~F: 81(-) 1q ':~6\/ '1=6rlll TV I\IIIM"i=lI=j:;' 61 j:;'j::"c,nv 1=":iTQTq' WAIT ELSE SET FORMAT TO ZFADD.FMT APPEND REPLACE FACNO WITH MFACNO CLOSE FORMAT SET CONFIRM OFF STORE ' , TO wait subst @ 23,0 SAY 'Press any key to continue ... ' GET wait_subst READ SET CONFIRM ON ENDIF ENDDO CASE selectnum = 2 * DO CHANGE INFORMATION STORE' 'TO MFACNO CLEAR @ 10,5 SAY 'PLEASE ENTER FACULTY CODE NUMBER' GET MFACNO PICTURE '999' READ IF MFACNO <> ' SEEK MFACNO IF .NOT. EOF() SET FORMAT TO ZFCHG.FMT EDIT CLOSE FORMAT ELSE CLEAR @ 10,5 SAY 'FACULTY CODE NUMBER NOT FOUND' ENDIF ENDIF 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 * STORE 'N' TO MANS STORE' TO MFACNO SET TALK ON CLEAR @ 10,5 SAY' PLEASE E:NTER FACULTY CODE NUMBER' GET MFACNO PICTURE '999' READ IF MFACNO <> SEEK MFACNO IF .NOT. EOF() SET FORMAT TO ZFDEL.FMT READ IF MANS = 'Y' DELETE CLEAR @10,5 SAY 'RECORD HAS BEEN DELETED' ELSE CLEAR @10,5 SAY 'RECORD NOT DELETED' ENDIF ELSE CLEAR @10,5 SAY 'FACULTY CODE NUMBER NOT FOUND' ENDIF ENDIF SET TALK OFF SET CONFIRM OFF STORE . . T0 wait subst @ 23,0 SAY 'Press any key to continue ... ' GET wait_subst READ SET CONFIRM ON CASE selectnum = 4 DO REVIEW INFORMATION GO TOP BROWSE SET CONFIRM OFF STORE ' . TO wait subst @ 23,0 SAY 'Press any key to continue ... ' GET wait_subst READ SET CONFIRM ON ENDCASE * PACK ENDDO T RETURN * EOF: ZFMENU.PRG Pr"ograrn: .f< ZFADD. H1T F~ST hIAI'1E:" PICTURE , I I I I I I I I I I ' GET FNr~t1E -:: J~ ., ~36 SAY "L.AST Nt:1ME:" @ 3, 47 GET LNAI'1E PICTURE '~~ ~ ~ ~ ! ! I ! ! ! I I I I ' @ 6, 10 ~1f'4 Y "SOCIAL SECURITY NO.:" (S! lJ , ..":!'t"") PICTURE '999-99-9999' -''':''' GET SSN @ C) 10 SAY "FACULTY CODE NUI'1BEF\:" @ <:) , :.:;:::~ SA"! MFACNCl @ 1'-' ..::. 10 SAY II OFF ICE NUNBEF;::" @ 1. :,2 , I.,,.. PICTURE ' ! ! I ! ' .•:"'f,.,:) GET OFFNCl -:'-c:.@ 1. :::: , ·M) .....J SAY II F'HOI\~E t'JUr-1BER:" @ 12, ~.50 GET PHONE PICTURE '9999' @ 1 ~:.; 10 SAY "PRESS CTRL -END {~FTER Ej\~TEF: I NG FACULTY @ 3, 10 SAY "F I @ -=!* '-' , .::..::. r j .... ·J , ~ , I NFORNAT I ON" Pr-ogr-am: * ZFCHC3. FI"-n , 10 SAY II F I F:ST NAlvtE:" :3 ,22 GET FI'U~ME PICTURE , I I I I I I I I I I ' @ 3, 36 S?W "LAST N{:,ME: II @ '-' , "{~7 GET" LNAI"IE PICTURE , I I I I I , I , I I I I I I I ' '" @ 6, 10 SAY "S0CIr~L S[CURITY NO.:" @ 6 32 GET SSN PICTURE '999-99-9999' 1:9 Cj' , 10 SA"'!' II F j-':)CUL"T""-{ CODE NUI"IBEF:: II (!~ 9 GET FACNO PICTURE '999' @. 12, 10 bA\' "OFF I CE NUI"1BER:" @ 1"-' ..::. ,26 GET OFFNO PICTURE ' ! ! ! ! ' @ 12, :55 SAY II PHONE NUMBEF::" @ L"::: , ~.:i(j GET PHONE PICTURE '9999' @ 14 10 StY{ "PRESS C1F:L-END TO SAVE /4ND EXIT; @ ~5 @ , , -~r·.i ._"~ , PREbS ESC TO EXIT" * Program: @ ::;. , 1 0 @ ":!' ZFDEL.FMT SAY "FIRST I\lf~I'lE: SAY ZFACUL.TY- }FNAlvIE @ :::: , :36 SAY "LAST NAME:" @ -:r "-' , 47 SAY ZFACULTY-}LNAME @ C) , 10 SfYl "SOC I AL SECUR I TY NO.:" f& 6 , ~~::~2 SAY ZFACULTY-}SSN @ 9 , 10 S{-IV "FACULTY CODE: NUl'lBER:" ":r.-.. t~ 9 , ....:1..::., SAY ZFACULTY-}FACNO ro, @ 1 ..:;. , lO SAY "OF!=-- I CE NUMBER:" @ 1 ';- , 26 SAY lFACULTY-}OFFNO (~ SA\' "PHONE NUMBER:" 12 , -:rr::._' ....J @ 12 , 50 SAY ZFACULTY-}PHONE @ 1 ~) , 10 SAY 'IS THIS THE RECORD YOU WISH TO DELETE?' @ :l ~.:; , 50 GET MANS PICTURE ' I " ..... " , 2:;-:: ~ 1\ * * * * * * Program .. : Author ... : Date ..... : Notice ... : Notes .... : Reserved.: ZRMENU.PRG K. RENEE HARRIS 05/07/86 Copyright (c) 1986, K. RENEE HARRIS, All Rights Reserved selectnum * SET SET SET SET SET TAU::: OFF BELL OFF DELETED ON ST {i TUS ON CONFIRI"1 ON , TO OTt=< ' CLEAR @ 10,10 SAY 'WHICH QUARTER DO YOU WISH TO WORK WITH?' GET OTR PICTURE 'XXX99' READ IF OTR = RETURN ENDIF ~3TORE STORE OTR+'.DBF' TO MOTR IF .NOT. FILE(MOTR) CLEAR @ 10,10 SAY 'DATA8ASE FILE DOES NOT EXIST' \.>JAIT RETURN ENDIF USE &OTR INDEX &OTR DO \.>JHILE . T. * ---Display menu options, centered on the screen. draw menu border and print heading CLEAR @ 1,25 SAY 'BALL STATE SCHOOL OF MUSIC' @ 2, 0 TO 14,79 DOUBLE @ 3,16 SAY [R E GIS T RAT ION I N FOR MAT I 0 NJ @ 4,1 TO 4,78 DOUBLE * ---display detail lines @ 7,10 SAY [1. ADD NEW INFORMATION] @ 8,10 SAY [2. CHANGE INFORMATION] @ 9,10 SAY [3. REMOVE INFORMATION] @ 10,10 SAY [4. REVIEW INFORMATION] @ 7,40 SAY [5. VIEW INFORMATION] @ 8,40 SAY [6. PRINT INFORMATION] @ 9,40 SAY [7. ADD CLASS] @ 10,40 SAY [8. DROP CLASS] * @ 13, 30 SAY '0. EXIT' STORE 0 TO selectnum @ 15,::3 ~3(-iY select (~ 15,42 GET select.num PICTURE "9" R{1NGE 0,8 READ II DO CASE CASE select.num II 0 SET T{~LK ON CLEAr;: ALL RETUF;:!'-"I CASE selectnum = 1 * DO ADD INFORMATION t1AGA I 1\1 ::; '"f' DO WHILE MAGAIN - 'V' CLEAR I"ISSN == MCRSNO ""@ 10, 10 Sf'.:)Y 'PLEASE ENTER STUDENT SOCIAL SECURITV NUMBER' @ 10,54 GET MSSN PICTURE '999-99-9999' @ 12, 10 Sf'.:W 'PLEASE ENTER COURSE NUMBER' @ 12, ::::'-7 GEl MCRSNO PICTURE '999' RE{1jD STORE SUBSTR(MSSN,1,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,8,4) TO TSSN IF TSSN = ' .OR. MCRSNO = ' , 1'1?"~G?"~ IN:: 'N' LOOP ENDIF SET FORMAT TO ZRADD.FMT APPEND REPLACE SSN WITH MSSN REPLACE CRSNO WITH MCRSNO REPLACE TVPE WITH 'N' CLOSE FORt1(lT SET CONFIRI'I OFF STORE ' , TO wait subst @ 23,0 SAV 'Press any key to continue ... ' GET wait_substr F~EAD SE"r ENDDO CO!'-~F I m'1 ON CASE selectnum == 2 * DO CHANGE :NFORMATION STORE ' TO MSSN STORE' 'TO MCRSNO CLEAR @ 10,5 SAV 'PLEASE ENTER SOCIAL SECURITV NUMBER' GET MSSN PICTURE '99999-9999' @ 12,5 SAV 'PLEASE ENTER COURSE NUMBER' GET MCRSNO PICTURE '999' READ STORE SUBSTR(MSSN,1,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,8,4) TO TSSN IF TSSN {} , .AND. MCRSNO {} , SEEK MSSN+I"ICRSNO IF. NOT. EOF ( ) SET FORMAT TO IRCHG.FMT EDIT CLOSE FORMrn ELSE CLEAR @ 10,5 SAV 'SOCIAL SECURITV AND/OR COURSE NUMBER NOT FOUND' EI\ID IF ENDIF SE"r CONF I RI'1 OFF STORE . , TO wait subst @ 23,0 SAV 'Press any key to continue ... ' GET wait subst READ ~3ET CONF I RI"1 ON SET COLOR TO G,R/G,N.N CLE{~F: CASE selectnum - 3 'f\r. LIC"Mrit JC' T hlr::·i·~CrM/\.I· T rlhl MAGAIN = 'Y' DO WHILE MAGAIN - 'Y' STORE TO MANS STORE ' TO MSSN STORE ' TO MCRSNO CLEAR PLEASE ENTER SOCIAL SECURITY NUMBER' GET MSSN PICTURE '99 @ 10,5 SAY 9-99-9999' PLEASE ENTER COURSE NUMBER' GET MCRSNO PICTURE '999' @ 12,5 SAY READ STORE SUBSTR(MSSN,1,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,B,4) TO TSSN IF TSSN <> ' , .AND. MCRSNO <> . SEEK MSSN+MCRSNO STORE 'Y' TO FLAG DO WHILE FLAG = 'Y' IF .NOT. EOF() SET FORMAT TO ZRDEL.FMT READ IF MANS = 'Y' DELETE CLEAR @10,5 SAY 'RECORD HAS BEEN DELETED' FLAG = 'N' LOOP ELSE IF MANS = 'N' CLEAR @10,5 SAY 'RECORD NOT DELETED' FLAG = 'N' LOOP ELSE SKIP LOOP ENDIF ENDIF ELSE CLEAR @10,5 SAY 'SOCIAL SECURITY AND/OR COURSE NUMBER NOT FOUND' FLAG = 'N' LOOP ENDIF ENDDO CLOSE FORMAT SET TALK OFF SET CONFIRM OFF PACK STORE ' , TO wait subst @ 23,0 SAY 'Press any key to continue ... ' GET wait_subst READ SET CONFIRM ON ELSE MAGAIN = 'N' LOOP ENDIF ENDDO CASE selectnum = 4 * DO REVIEW INFORMATION GO TOP 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 VIEW INFORMATION t'1AGA IN:::: ' y , DO WHILE MAGAIN - 'y' 1""1SSN ::::: @ 10,10 SAY 'PLEASE ENTER STUDENT SOCIAL SECURITY NUMBER' GET MSSN PIC TURE '999-99-9999' READ STORE SUBSTR(MSSN,i,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,8,4) TO TSSN IF Tf:3SN = ' t'1{~GA IN:::: 'N' I._OOP ENDIF DO ZRVIEW.PRG USE &QTR INDEX &QTR ENDDO CASE selectnum - 6 * DO PRINT COURSE INFORMATION M{~G?'-i IN:::: 'Y, DO WHILE MAGAIN 'Y' t'1SSN :::: CI_EAF! @ 10,10 SAY 'PLEASE ENTER STUDENT SOCIAL SECURITY NUMBER' GET MSSN PI CTURE '999-99-9999' F:E?'-m STORE SUBSTR(MSSN,1,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,8,4) TO TSSN IF TSSN =: ' MAGAIN := '\'-J-LOOP E:NDIF DO ZRPRINT.PRG USE &QTR INDEX &QTR ENDDO CASE selectnum - 7 -jiADD {-~ CL_ASS t'l(iG{-i I N == -\{ , DO WHILE MAGAIN ::::: 'Y' CL.Ef:~F: 1"1SSI'-1 == MCRSNO -@ 1 {-I -- , 10 SAY 'PLEASE ENTER STUDENT SOCIAL SECURITY NUMBER' @ 10,54 GET MSSN PICTURE '999-99-9999' I~ 1 :::: , 10 SAY 'PLEASE ENTER COURSE NUMBER' 1 .0::. ,-, , :::::'7 GET MCRSNO I~ PICTURE '999' READ STORE SUBSTR(MSSN,1,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,B,4) TO TSSN IF n-J~:;N ::::: ' • OF:. MCRSNO : : : ' 1·IAGf'.:iIN::: 'N' LOOP ENDIF SET FORMAT TO ZRADD.FMT APF'E:ND REPLACE SSN WITH MSSN REPLACE CRSNO WITH MCRSNO REPLACE TYPE WITH 'A' CLom~ FORt1AT SFT" cm·JF I RM OFF STORE ' , TO wait substr (~ 2:::;, 0 !3{~iY 'Press any key to cont i nue ... ' GET I.-'Jai t._..5 ubs t.rREAD SET COr-IF I F:f'1 ON EI\lDDO CASE selectnum = 8 "* DROP (i CLASS t1{\Gf~ 1 N ::;: 'Y' DO WHILE MAGAIN - 'Y' CLb~IR !"lANS :: I'lS9\~ ::;'" t-1CHSNO @ 10,10 SAY 'PLEASE ENTER STUDENT SOCIAL SECURITY NUMBER' @ 10,54 GET MSSN PICTURE '999-99-9999' @ 12,10 SAY 'PLEASE ENTER COURSE NUMBER' @ 12,37 GET MCRSNO PICTURE '999' RErm STORE SUBSTR(MSSN,i,3)+SUBSTR(MSSN,5,2)+SUBSTR(MSSN,B,4) TO TSSN IF TSSN = .OR. MCRSNO = ' t1?~G?~ I N == 'N' LOOP ENDIF E~EE~::: MSSN+i"iCRSNO FL,I:2j(3 = ' \( , DO WHILE FLAG = 'Y' IF EOF() CLEIiF: @ 10,10 SAY 'COURSE FOR STUDENT NOT FOUND' F'LAL:' :::= ' N . L.. OOF ELSE 8ET FORMAT TO ZRDEL.FMT RE?i[' IF I"I{iNS == '"y' REPLACE TYPE WITH 'D' CL.Ef-IR @ 10,5 SAY 'COURSE HAS BEEN DROPPED' FLAG .- 'N' LOOP EU;E I F MANS == '1\1' CLEf4R @ 10,5 SAY 'COURSE NOT DROPPED' FLAG == 'N" LOOP ELSE SKIP LOOP ENDIF ENDIF EhiDIF ENDDO CLClSE FOFi:!"lAT ~3ET CONF I Rt1 OFF STORE 'TO wait subst @ 23,0 S{-W 'Pres~j any key to cont.inue ... ' (3FT \o'Jait._ .. subst REf:\D SET CONF I m-1 ON ENDDO ENDCASE F'ACK ENDDO T RETURI\~ * EOF: ZRMENU.PRG * * * * .j!- * Program .. : Author ... : Date .. ... : Notice ... : NotE"~s .... : Reserved.: ZRVIEW.PRG K. RENEE HARRIS 06/10/86 Copyright ec) 1986, K. RENEE HARRIS, All Rights Reserved selectnum .j!- SET· SET SET SET SET SET @ @ @ @ @ @ @ bAFETY OFF TALI< OFF BELL OFF STATUS ON ESCAPE OFF CONF I RI'1 m'J 2,0 TO 14,79 DOUBLE 3,24 SAY [V lEW I N FOR MAT ION] 4,1 TO 4,78 DOUBLE 7,30 SAY [1. VIEW ALL CLASSES] 8,30 SAY [2. VIEW NEW CLASbES] 9,30 SAY [3. VIEW ADD CLASSES] 10,30 SAY [4. VIEW DROP CLASSES] @ 12,30 SAY '0. EXIT' STORE 0 TO selectnum @ 1 iJ. @ 14,4:: GET sE'lectnum PICTURE "9" RANGE 0,4 ,::):~; SA'V II se 1. ec: t: II READ DO CASE CASE selectnum RETURN = 0 CASE selectnum = 1 * VIEW ALL CLASSES CLEAR COPY TO TEMP FOR MSSN - SSN USE TEt1P IF RECCOUNT() = 0 CL.EAR @ 10,10 SAY 'NO CLASSES TO VIEW FOR STUDENT' W{-iIT ELSE DISPLAY ALL FIELDS REFNO,DEPTNAME,DEPTND,CRSNO,SECNO,CRHRS,CRSNAME,FACNO, COMt"1ENTS l-'JAIT ENDIF CASE selectnum = 2 * VIEW NEW CLASSES CLEf:)R COpy TO TEMP FOR MSSN=SSN .AND. TYPE - 'N' USE TEt'IP IF RECCOUNT() = CLEAR @ 10,10 SAY 'NO CLASSES TO VIEW FOR STUDENT' vJAI T ELSE DISPLAY ALL FIELDS REFNO,DEPTNAME,DEPTNO,CRSNO,SECNO,CRHRS,CRSNAME,FACNO, COMlvlENTS ° WAIT ENDIF CASE selectnum = 3 * VIEW ADD CLASSES CLEAR COpy TO TEMP FOR MSSN=SSN .AND. TYPE - 'A' USE TEMP IF RECCOUNT() = CLEAR @ 10,10 SAY 'NO CLASSES TO VIEW FOR STUDENT' WAIT ELSE DISPLAY ALL FIELDS REFNO,DEPTNAME,DEPTNO,CRSNO,SECNO,CRHRS,CRSNAME,FACNO, COMMENTS WAIT ENDIF ° CASE selectnum = 4 * VIEW DROP CLASSES CLEAR COPY TO TEMP FOR MSSN=SSN .AND. TYPE = 'D' USE TEMP IF RECCOUNT() = CLEAR @ 10,10 SAY 'NO CLASSES TO VIEW FOR STUDENT' WAIT ELSE DISPLAY ALL FIELDS REFNO,DEPTNAME,DEPTNO,CRSNO,SECNO,CRHRS,CRSNAME,FACNO, COMMENTS WAIT ENDIF ° ENDCASE ZAP USE RETURN * * * * * Program .. : Author ... : Date . . . . . : Notice ... : Notes ••.. : Reserved.: * ZRPRINT.PRG K. RENEE HARRIS 05/29/86 Copyright (c) 1986, K. RENEE HARRIS, All Rights Reserved selectnum * SET SET f:lET SET SET SET OFF TAU::: OFF BELL OFF S{~FETY ~JTATUS m,~ ESCAPE OFF" CONFIRM ON CLE{iF1: 2,0 TO 14,79 DOUBLE 3,8 SAY [P R I N T REG 1ST RAT ION 4,1 TO 4,78 DOUBLE 7,30 SAY [1. PRINT ALL CLASSES] 8,30 SAY [2. PRINT NEW CLASSES] 9,30 SAY [3. PRINT ADD CLASSES] 10,30 SAY [4. PRINT DROP CLASSES] @ @ @ @ @ @ @ I N FOR MAT ION] @ 12,30 SAY '0. EXIT' STORE 0 TO selectnum @ 14, :~;::::; ~;AY " sel f2ct " @ 1.4,42 GET sel ec:tnum PI CTURE "9" R{iNGE 0,4 RE?;D DO CASE CASE selectnum - 0 r-:;~ETl.JRN * * * CASE selectnum = 1 * PRINT ALL CLASSES CLEI1R SET PFUNT ON ?CHH ( 15) COpy TO TEMP FOR MSSN - SSN USF:~ TEMP IF HECCOUNT() = 0 CLE{iR @ 10,10 SAY 'NO CLASSES TO PRINT FOR STUDENT' SET PRINT OFF SET DEVICE TO SCREEN l1JAIT ELSE GO 1. MFNAi"'1E ::: FN{"H1E 11LNf:.iME ::: LN{iI1E SET DEVICE TO PRINT (§! ~~;, :::; SAY i"lFI\j(~i"'1E @ 3,14 SAY MLNAi"'1E @ 4,:::; SAY r1S~3N @ 5,1. SAY DATE() @ 5,:3 SAY QTt=< @ 8,1 SAY' SET DEVICE TO SCREEN SET PF~ I NT ON REPORT FORM TREPORT NOEJECT TO PRINT *DISPLAY ALL FIELDS REFNO,DEPTNAME,DEPTNO,CRSNO,SECNO,CRHRS,CRSNAME,FACNAME,COMM ENTS ENDIF ?CHR (18) ??CHF~: ( 1 ~5) SET F'FUNT OFF SET DEVICE TO SCREEN CASE selectnum = 2 PRINT NEW CLASSES * CLE{:~F: SET Pt7,: I NT Ol\~ ?CHR (15) COPY TO TEMP FOR MSSN - SSN .AND. TYPE = 'N' USE TEr·1P IF RECCOUNT() = CLEAR @10,10 SAY 'NO CLASSES TO PRINT FOR STUDENT' WAIT ELSE ° GO 1 MFNAI'lE : ;: FNAlvlE r-H... NAI·1E : :;: LNAI~IE SET DEVICE TO PRINT @ 3,::::; SAY r-1Fr'ltH'lE @ 3,14 SAY MLNAME 4,3 E;AY r1S~;N @ 5,5 SAY DATE() @ 5,:; SA Y DTF: @ * SAY , , * SET DEVICE TO SCREEN SET F'F~ I NT ON REPORT FORM TREPORT NOEJECT TO PRINT *DISPLAY ALL FIELDS REFNO,DEPTNAME,DEPTNO,CRSNO,SECNO,CRHRS,CRSNAME,FACNAME,COMM EN'rS ENDIF ??CHR (13) ?CHF: (18) SET PRINT OFF SET DEVICE TO SCREEN 8,5 @ CASE selectnum = 3 PRINT ADD CLASSES * CLEt~R SET PRINT I.JN '?CHR (15) COPY TO TEMP FOR MSSN - SSN .AND. TYPE = 'A' LJ!3E TEt1P IF RECCOUNT() = @ 10,10 SAY 'NO CLASSES TO PRINT FOR STUDENT' ° W{~IT ELSE GCl * * * 1 t'lFNAI"lE = FNPd"lE NLNAME = U'-IANE SET DEVICE TO PRINT @ ::;,3 SAY i"lFNAI"IE @ 3,14 SAY MLNAME @ 1+,::::; SA\' MSSN @ 5,5 SAY DATE() @ 5,::::; SAY QTR @ 8,5 S/;W , , SET DEVICE TO SCREEN SET PF:IhIT ON REPORT FORM TREPORT NOEJECT TO PRINT *DISPLAY ALL FIELDS REFNO,DEPTNAME,DEPTNO,CRSNO,SECNO,CRHRS,CRSNAME,FACNAME,COMM ENTS ENDIF ?CHR (18) ??CHF~ ( 1 ~~:;) SET PRINT OFF SET DEVICE TO SCREEN CASE selectnum = 4 PRINT DROP CLASSES CL.EAR SET PRINT ON ';"'CHF~ ( 15) COpy TO TEMP FOR MSSN = SSN .AND. TYPE = 'D' USE TEMP IF RECCOUNT() = @ 10,10 SAY 'NO CLASSES TO PRINT FOR STUDENT' WAIT ELSE * ° GO 1 MFNAME : :." FNAt.;IE MLN?"1t"1E = LNAI"IE SET DEVICE TO PRINT @ :3;, ::::: SA""y' t"lF"'"I(~r-1E @ 3,14 SAY MLNAME @ 4,3 SAY t"lSE;N * @ 5,5 SAY DATE() (!~ 5,::::; SAY ClTF1 * @ 8,5 SAY , , -it" SET DEV I CE TO SCREEhl SET PRINT ON REPORT FORM TREPORT NOEJECT TO PRINT *DISPLAY ALL FIELDS REFNO,DEPTNAME,DEPTNO,CRSNO,SECNO,CRHRS,CRSNAME,FACNAME,COMM ENTS ENDIF ?CHR (lEI) ?'?CHF~ ( 1 ~3) ~3~~T PR I NT OFF SET DEVICE TO SCREEN zr~P USE RETURI\~ ZF:ADD. n·n @ 3,10 SAY "FIRST N{')ME:" @ 3,22 GET FNAME PICTURE , I I I I I I I I I I ' @ 3, ~56 Sr4 Y "LAST NAI'1E:" I I ' @ 3,47 GET LNAME PICTURE '! I ! ! I ! ! ! ! I I @ ~:i, 10 SA"Y "SOC I (~L !3ECUR I TY NCl. :" @ ::i. :32 SA""{ 1"1SSN @ 7,10 Si-)Y "HEFERENCE NO. :" @ 7,26 GET REFNO PICTURE '9999' @ 7, ~~;':"i S{W "DEF'ARn'1ENT NAME:" @ 7,52 GET DEPT NAME PICTURE ' ! ! ! ! I ' @ 9, 1 I) SA\" "DEPi~lRn'1ENT NUMBER:" @ 9,29 GET DEPTNO PICTURE '999' @ 9, 3lJ SAY "COURSE I\IUMBER:" @ 9,51 SAY MCRSND @ 11, 10 ~3("W "SECTION NUt1BER:" @ 11,26 GET SECNO PICTURE '999' @ 11,::::::::;: SAY "CREDIT HOURS:" @ 11,47 GET CRHRS PICTURE '9' ~~ 1::;;, 1 0 ~3AY "COUF;:SE NAME:" I I @ 13,23 GET CRSNAME PICTURE '! I ! ! ! ! I I @ 13, :~:'9 SAY "F r~~CULTY I'"JUMBER:" @ 13,55 GET FACNO PICTURE '999' @ 1 ~j , 1 0 :~3("r{ "F {-)CUL Tl I NIT I AL AND LAST NAI"1E:" @ 15,43 GET FACNAME PICTURE ' I I I I I ! I ! ! ! I! ! ! @ 17,10 SWr' "COMI"1ENTS:" @ 17,20 GET COMMENTS PICTURE ' I I ! ! ! ! ! ! I ! ! I ! ! @ I I I I • I !!!! ! ! !! ! !! ! !! !! ! !! 19, 1 (> Sr-iY "PRESS Ctr 1 -End WI-"IEN FIN I SHED ENTER I NG II'JFORI"1AT I ON" I I I I I I I I I I I I I ~-::'r· * @ @ @ @ is (~ @ (§! @ @ @ (~ J~ @ @ @ @ @ @ @ @ @ @ @ (~ @ @ @ @ ZHCHG. Ft1T ogr· am: , :3 10 SAY "FIHST NAME:" .--:or, -:!' PI CTUHE , I I I I I I I I I I '._' , ,<••:.. GET F'NAt'1E "< 36 Sf'~Y 11 U~)ST NAI'1E: 11 '-' , "-:r 4'7 GET LNAME PI CTUI:;:E '~~ ~ ~ ~ ~ ~ ~ ~ ~ '._' , ' "'" , 10 SA\{ "SOC l{~L SECUF: I TY NO. :" d '":!,;") c::PIC1UHE '999-99-9999' Gt::T SSN ~I , '_I .•:... d , 45 SAY "TYPE OF COUF:SE: 11 r.=' PICTURE ' I ' GET TYPE ~J , 61 -., 10 S{'~Y "F:EFEF:ENCE NO. :" I '7 2t. GET HEFNO PICTUHE '9999' '7 , :35 SA\{ "DEPARTI"'II:::NT N{iME: 11 PICTUHE '~~ 7 '.oJ.'::' GET DEPTNAME 9') 10 S(21 '1' II DEPAHTI"1ENT I"JUMBEF::" PICTUHE '999' :... ; GET DEPTNO 9, ..r:lc) 9, 36 S{.W 11 COUHSE I\IUI"IBEH: 11 PICTUHE '999' 9 , ~51 GET CHSNO 1 1 , 10 SA'!' "SECT I 01\1 NUMBEH:" PICTUHE '999' 1 1 , 26 GET SECNO ";roo::, S{W "CREDIT HOUHS:" :l. :l PICTUHE '9' 1 1 L'].'7 GET CHHHS 12; 10 SAY II COURSE Nf~l"lE:" "-)'-::1 PICTURE ' I ~ ! ~ ~ ~ ~ "'.'-' GET CRSNAME 1::::; , ::::8 E';AY !I F-·{~CUL T\{ NUMBEF::" t:-c:' 1 :::;; , d d GET FACNO PICTURE '999' 15 10 StiY "F ACUL T'{ I NIT I AL {},ND LAST' PICTURE ' I I I I I ! ~ 1~:; , 4"~ '-' GET F {iCN{~ME SA"{ 1. 7 10 "COl"lt'1ENTS: " , I I I I I I I 17, :?O GET' ' I I I 0:::' , , , t:::''-''j ., • .:~ ,_I ••••••• _1 , , , I , II PRESS CTF<L.-Et,m TD SAVE ~ r~AME:" I ~ ~ ! ~ !! ~ ! I I ' I I I I I I I I I I I , 19, 10 SAY ! ! ! '~iND I EX IT; I I I I I I I I I I I I I PRESS ESC TO EX I I I r' I I I I I I I I I I I I I I I * @ Program: ZRDEL.FMT :3, 10 SAY "F'IF(ST I\IAI"1E:" 3, :::2 SAY HM~ME :3, :::::6 SA")! "LAST NAI"1E:" @ :3, 47 Sf;Y U'-IAME @ 10 SAY SAY 5, 4~i SA'f 5,61 E;{W 7 , 10 Sf7%Y 7, 26 S(4'" C;:' ,..!, t::" "~r:, @ -,I , ''')...1 @ 7 @ @ @ @ @ ,..! , '-''<'' -;rc:- S{~Y "SOCIAL E:ECURIP( 1\10. SSN "TVPE OF COURSE:" TYPE "REFERENCE 1\10. :" :" F:F.~FNO "DEPARTt"IEI'H N{iME::" DEPTNAt-1E I:£! 9, 10 SA'l "DEP~iRTI"1ENT NW.1BER: II t-.iC'J @ 9 .:. S(W DEPTNO f @ 9 3l:l S(':,Y "COURSE Nut-mER:" 9, ~51 ~3(~ \{ CRSNO @ :I 1 , 10 SAY "SECT I ON NlJI'1BER:" 1. 1 ,26 SAY SECND @ 1 1 -:!' SPIY "CREDIT HOURS:" @ 1 1 47 SAY CF:HRS -:~ @ 1 '-' 10 SA'l "COURSE NAt1E:" .. @ 1. ..'._'=!' ,.,-; L,_) SAY CRSNAt·IE @ 13, :::::9 ~:;AY "Fi=,CUL TV NUMBER:" 13 , __, oJ SAY FACNO @ 15, 10 SA'{ "FnCULTY HHTIAL.. {-)ND Lr::iST N{iME:" @ 15,43 SAY FACNAME @ 17, 1 0 S{~ Y "COMt·1EN""S:" @ 17,20 SAY COMMENTS 'lHHi'@ 19,10 SAY "PRESS CTRL-U TO DELETE ~i RECORD M~D CTF;L-END TO EXIT" @ 19,10 SAY 'IS THIS THE CORRECT COURSE? . @ 19,50 GET MANS PICTURE . I • , ~j2 stw , , , -:~. ,_1._.1 , , , c::"t;;" * * * * -li- * * P~og~am .. : Author ... : Da-te . . . . . : Notice ... : Notes .... : Reserved.: ZFRMENU.PRG K. RENEE HARRIS 06/17/86 Copyright (c) 1986, K. RENEE HARRIS, All Rights Reserved selectnum SET SAFETY OFF SET T ?"~LK OFF SET BELL OFF -IE-SET ST{-iTUS ON SET ESCAPE OFF ~3Er CONF I Rt1 m\~ STORE ' , TO QTR CLE{iR @ 10,10 SAY 'WHICH QUARTER DO YOU WISH TO WORK WITH?' GET QTR PICTURE'!! !99' F~E(:)D IF OTR :=: F:;:ETURN ENDJF STORE QTR+'.DBF' TO MQTR IF .NOT. FILE(MQTR) CLE;:iF: @ 10,10 SAY 'DATABASE FILE DOES NOT EXIST' Wi:~ I T RETURN ENDIFDO L..JH I LE: • T. USE ~<QTR INDEX ON FACNAME+CRSNO+LNAME+FNAME TO TNDX USE &OTR INDEX TNDX CLEAh *@ 2,0 TO 14,79 DOUBLE @ 3,18 SAY [F A C U L T Y C LAS S LIS T *@ 4,1 TO 4,78 DOUBLE @ 7,30 SAY [1. VIEW FACULTY CLASS LIST] @ 8,30 SAY [2. PRINT FACULTY CLASS LIST] @ 10,30 SAY '0. EXIT' STORE 0 TO selectnum @ :1_2,:3::::; SA\' " select " @ 12,42 GET selE~ctnum PICTURE "9" R{~NGE 0,'2 r:;:EAD DO Cr:-"1SE CASE selectnum RETURN = MEN UJ 0 CASE selectnum = 1 * VIEW FACULTY LOAD REPORT CLEAR STORE ' , TO MFACNAME @ 10,10 SAY 'ENTER FIRST INITIAL AND LAST NAME OF INSTRUCTOR:' @ 10,59 GET 1'1FI~CNfiME PI CTUF<E '!!!!!!! I ! ! I ! I ! ! ! ! ! ' REi:m ~;EEK MFf.'-lC\\\{W!E COPY TO TEMP1 FOR FACNAME USE TEt'1P 1 MFACNAME CLEAR IF RECCOUNT() - 0 CLEAR @ 10,10 SAY 'NO CLASSES TO PRINT FOR INSTRUCTOR' WAIT ELSE DISPLAY ALL FIELDS Crsno,Lname,Fname OFF WAIT ENDIF CASE selectnum = 2 * PRINT FACULTY LOAD INFORMATION CLEAR , TO MFACNAME STORE @ 10,10 SAY 'ENTER FIRST INITIAL AND LAST NAME OF INSTRUCTOR:' @ 10,59 GET MFACNAME PICTURE '~~ ~ ~ I ~ I ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ , READ SEEK MFACNAME COpy TO TEMP1 FOR FACNAME - MFACNAME USE TEMPt IF RECCOUNT() = CLEAR @ 10,10 SAY 'NO CLASSES TO PRINT FOR INSTRUCTOR' WAIT ELSE CLEAR SET DEVICE TO PRINT @ 3,3 SAY MFACNAME @ 4,3 SAY DATE() @ 4,3 SAY QTR @ 8,1 SAY' SET DEVICE TO SCREEN SET PRINT ON REPORT FORM FREPORT NOEJECT TO PRINT ° * * * DISPLAY ALL FIELDS Crsno,Lname,Fname OFF TO PRINT ?? CHR(13) SET PRINT OFF ENDIF ENDCASE ZAP ENDDO T USE RETURN * * ~- * * * Program .. : Author ... : Date ..•.. : Notice ... : Notes .... : Reserved.: ZCREATE.PRG K. RENEE HARRIS 07/1)1/86 Copyright (c) 1986, K. RENEE HARRIS, All Rights Reserved selectnum 11- SET T':':,LK OFF SET BELL Or:-F SET CONFIRM ON STORE ' TO QTR STORE 'N' TO MANS CU~{~IR (.Sl 10,10 S?~Y 'ENTER NEvJ DATAB{~SE NPlt-'lE: ' GET c!TF~ PICTURE j=;:E{~D IF QTF: == RETURN ENDIF STORE QTR+'.DBF' TO MQTR IF- FILE U'lQTR) CL.E?"iR @ 10,10 SAY 'DATABASE ALREADY EXISTS' W('~IT RETUF:N ENDIF CL.EAR @ 10,10 SAY 'IS THIS THE DATABASE YOU WISH TO CREATE? ' 10, ~5::::; @ 10,60 ~3('~Y @ Q-fR GET MANS PICTURE ' I ' READ IF t'l?"iNS = . Y , USE ZREGIS INDEX ZREGIS COpy STRUCTURE TO &QTR USE 8dHR INDEX ON SSN+CRSNO TO &QTR USE CLEf~R @ 10,10 SAY 'DATABASE CREATED' WAIT ELSE CL.EAF: @ 10,10 Wf~IT Et'WIF RETURN SAY 'DATABASE NOT CREATED' '~~ ~99' * * * * * * * Program .• : Author ... : Date ..... : Notice ... : Notes .... : Reserved.: ZBKUP.PRG K. RENEE HARRIS 07/01/86 Copyright (c) 1986, K. RENEE HARRIS, All Rights Reserved selectnum SET TALK OFF SET BELL OFF SET CONFIRM ON USE CLEAR STORE ' TO QTR @ 10,10 SAY 'ENTER DATABASE FILE TO BACKUP: @ 10,43 GET QTR PICTURE '~~ ~99' READ IF QTR = RETURN ENDIF STORE QTR+'.DBF' TO MQTR IF FILE(MQTR) CLEAR @ 10,10 SAY 'INSERT DISKETTE INTO DRIVE B:' WAIT CLEAR @ 10,10 SAY 'COPYING DATABASE FILE TO DISKETTE' COPY FILE &MQTR TO B:&MQTR STORE QTR+'.NDX' TO MQTR COPY FILE &MQTR TO B:&MQTR CLEAR @ 10,10 SAY 'COPY COMPLETE' WAIT ELSE CLEAR @ 10,10 SAY 'DATABASE FILE DOES NOT EXIST' WAIT ENDIF RETURN