home *** CD-ROM | disk | FTP | other *** search
- * 6-10-84 STUD5-1.PRG This program lets you change the rate students
- * get charged per lesson. You can change 'em all at one swoop, or each
- * student on an individual basis.
- ERASE
- SET talk OFF
- STORE T to Study
- DO WHILE Study
- USE B:Student
- SET Index TO Lname
- STORE " " to Mfull
- STORE " " to Mrate
- STORE " " to Mname
- @ 22,0
- @ 5,6 SAY "This program enters the rate ($$'s) per lesson."
- @ 8,9 SAY [If you only want to enter a single student's new rate-per-lesson,]
- @ 9,9 SAY '---===>>Press "N"'
- @ 11,9 SAY [If you want to change everyone's rate, one after another,]
- @ 12,9 SAY '---===>>Press "Y"'
- @ 13,1 SAY " "
- @ 14,9 SAY [If you'd really rather forget the whole thing,]
- @ 15,9 SAY '---===>>Press "A"'
- DO WHILE .NOT. Mfull$"YNA"
- @ 17,39 GET Mfull PICTURE "!"
- READ NOUPDATE
- ENDDO
- *
- IF Mfull="A"
- STORE F to Study
- ERASE
- ENDIF
- *
- IF Mfull="N"
- ERASE
- STORE " " to Mname
- @ 3,24 SAY "YOUR COMPANY NAME CAN GO HERE"
- @ 13,1 SAY "Enter the Student's last name" GET Mname
- READ NOUPDATE
- *
- IF Mname = " "
- STORE F to Study
- USE
- RETURN
-
- ELSE
- STORE TRIM(Mname) to Findstud
- ENDIF
- *
- FIND &Findstud
- *
- IF #=0
- ERASE
- @ 22,0 SAY Findstud+" is not in the student file."
- LOOP
- ENDIF
- *
- IF #>0
- STORE # to Placemark
- ENDIF
- *
- IF .NOT. Acct:Num = Findstud
- SKIP
- IF Lname=Findstud .AND. .NOT. EOF
- ERASE
- @ 1,1 SAY 'We have more than one '+findstud' on file.'
- SKIP -1
- ?
- DISPLAY Fname,Lname WHILE Lname=Findstud
- ?
- INPUT "Enter the number from left column, or (num.) 0 to abort.";
- to Placemark
- ENDIF
- ENDIF
- *
- IF Placemark>0
- GO Placemark
- ERASE
- SET Colon OFF
- @ 5,3 SAY Fname
- @ 5,17 SAY Lname
- @ 8,30 SAY "New rate per lessson: "GET Mrate PICTURE "99.99"
- READ NOUPDATE
- REPLACE Rate WITH VAL(Mrate)
- ERASE
- STORE " " to Mrate
- CLEAR Gets
- SET Colon ON
- ENDIF
- LOOP
- ENDIF
- *
- If Mfull="Y"
- SET Colon OFF
- ERASE
- @ 11,5 SAY "First I'll be chugging for a moment or two erasing ALL the"
- @ 13,5 SAY "rates-per-lesson I had on file previously. Have patience!!"
- STORE " " to Mrate
- REPLACE ALL Rate with VAL(Mrate)
- ERASE
- GO TOP
- DO WHILE .NOT. EOF
- STORE " " to Mrate
- @ 5,10 SAY Fname
- @ 5,27 SAY Lname
- @ 8,25 SAY "New rate-per-lesson: " GET Mrate PICTURE '99.99'
- READ NOUPDATE
- REPLACE Rate WITH VAL(Mrate)
- ERASE
- SKIP
- LOOP
- ENDDO
- SET Colon ON
- ENDIF
- USE
- RETURN
- Findstud
- ?
- INPUT "Enter the number from left column, or (num.) 0 to abort.";
- to Placemark
- ENDIF
- ENDIF
- *
- IF Placemark>0
- GO Placemark
- ERASE
- SET Colon OFF
- @ 5,3 SAY Fname
- @ 5,17 SAY Lname
- @ 8,30 SAY "New rate per lessson: "GET Mrate PICTURE "99.99"
- READ NOUPDATE
- REPLACE Rate WITH VAL(Mrate)
- ERASE
- STORE " " to Mrate
- CLEAR Gets
- SET Colon ON
- ENDIF
- LOOP
- ENDIF
- *
- If Mfull="Y"
- S