home *** CD-ROM | disk | FTP | other *** search
- *******************************************************************************
- * This gives you a complete address book of the students. *
- *******************************************************************************
- SET Talk OFF
- ERASE
- STORE T to Sequence
- DO WHILE Sequence
- @ 3,1
- TEXT
- Here I am, your friendly computer, ready to give you a complete list
- of your earnest students. So I don't screw up (ahem), please tell me
- now if you want a list of "current" students, or a list of alumni:
-
- Enter "1" if you want the "current" students.
- Enter "2" if you want the alumni.
-
- Enter "0" if you really don't want anything.
- ENDTEXT
- WAIT TO Mselect
- * In case there are any error messages showing, let's rub 'em out:
- @ 19,0
- @ 20,0
- @ 21,0
- @ 22,0
- @ 23,0
-
- DO CASE
- CASE Mselect = "0"
- USE
- RELEASE ALL
- ERASE
- RETURN
-
- CASE Mselect = "1"
- USE Student INDEX Lname
- STORE F TO Sequence
-
- CASE Mselect = "2"
- USE Xstudent INDEX Xlname
- STORE F TO Sequence
-
- OTHERWISE
- @ 19,3 SAY "I'm so sad and I'm so blue..."
- @ 20,3 SAY "'Cause you didn't key naught, one or two."
- @ 22,7 SAY "Try again, please!"
- ENDCASE
- ENDDO
- *
- *
- STORE T TO Continue
- DO WHILE Continue
- SET Print ON
- SET Format TO Print
- @ 0,0 SAY CHR(27)+CHR(66)+CHR(3)+CHR(27)+CHR(77)+CHR(0)+CHR(27)+CHR(78)+CHR(8)
- *
- STORE 0 to Page
- DO WHILE .NOT. EOF
- STORE Page+1 TO Page
- STORE 'January February March April May June '+;
- 'July August SeptemberOctober November December ' TO Date:str
- STORE TRIM($(Date:str, VAL($(Cdate,1,2))*9-8,9))+" " +;
- $(Cdate,4,2)+", 19"+$(Cdate,7,2) TO Sdate
- *
- @ 2,4 SAY 'Page '+STR(Page,2)
- @ 2,98 SAY Sdate
- STORE CHR(174) TO A
- STORE CHR(173) TO B
- STORE CHR(126) TO C
- @ 4,48 SAY "YOUR COMPANY'S CLIENTS OR CUSTOMERS"
- @ 6,57 SAY A+B+A+B+A+B+A+B+A+B+A+B+A+B+A+B+A
- *
- STORE 9 TO Line
- DO WHILE Line<56 .AND. .NOT. EOF
- ?? CHR(27) + CHR(66) + CHR(2)
- @ Line,1 SAY TRIM(Fname)+" "+Lname
- @ Line,30 SAY Phone
- ?? CHR(27) + CHR(66) + CHR(3)
- @ Line+1,6 SAY Acct:num
- @ Line+1,13 SAY Parent
- @ Line+1,44 SAY Addr1
- @ Line+1,70 SAY Addr2
- @ Line+1,96 SAY City:Etc
- IF Scholar
- @ Line+1,125 SAY "S"
- ENDIF
- STORE Line+3 TO Line
- SKIP
- ENDDO
- ENDDO
- *
- @ 0,0 EJECT
- @ 0,1 CHR(27)+CHR(64)
- SET Format TO Screen
- SET Print OFF
- USE
- SET Talk ON
- SET Console ON
- RELEASE Sequence,Mselect,Print,Page,Line,A,B,C,Continue,Decide
- RETURN
- * EOF
- "'Cause you didn't key naught, one or two."
-