home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
dbaseii
/
tdas.ark
/
STUD5-9.PRG
< prev
next >
Wrap
Text File
|
1986-08-24
|
2KB
|
71 lines
*******************************************************************************
* This is prints an attendence-taking form for the coming month. *
*******************************************************************************
SET Talk OFF
SET Eject OFF
USE STUDENT INDEX Lname
DO WHILE .NOT. EOF
STORE T to Attend
DO WHILE Attend
SET Format TO Print
SET Print ON
? CHR(27) + CHR(64)
? CHR(27) + CHR(77) + CHR(3)
? CHR(27) + CHR(66) + CHR(2)
? CHR(27) + CHR(71)
? CHR(27) + CHR(65) + CHR(14)
@ 1,71 SAY Rdate
@ 2,32 SAY "YOUR COMPANY ATTENDENCE RECORD"
? CHR(27) + CHR(72)
? CHR(27) + CHR(45) + CHR(1)
@ 4,19 SAY "{ } | | | | | | | | | | | | | | | | | ;
| | | | | |"
STORE F to Attend
STORE 6 to Line
DO WHILE Line<49
SET Print ON
IF Lname <> "Zz"
? TRIM(Lname)+","+$(Fname,1,1)
ELSE
? " "
ENDIF
@ Line,18 SAY "{ } | | | | | | | | | | | | | | | | | ;
| | | | | |"
SET Print OFF
STORE Line+1 to Line
SKIP
ENDDO
EJECT
STORE T to Attend
ENDDO
ENDDO
RELEASE Line,Attend
USE
SET Print ON
? CHR(27) + CHR(64)
SET Print OFF
SET Format TO Screen
RETURN
r "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