Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : TMKPDB3.ZIP
Filename : COMPUTER.PRG

 
Output of file : COMPUTER.PRG contained in archive : TMKPDB3.ZIP
CLEAR
USE COMPUSE ALIAS COMP
APPEND BLANK
RPT = .T.
SET TALK OFF
SET SAFETY OFF
DO WHILE RPT
?"ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»"
?"º TIME KEEPER º"
?"º Computer usage Log for TJKM º"
?"ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ"
?
?" This program is for the updating of the computer time logsheet. Normally, it will only be run by the person in charge of the TIME KEEPER system."
WAIT "If you wish to quit, hit [Q]. Otherwise, [Return] " TO QT
IF UPPER (QT) = "Q" THEN
PACK
RETURN
ENDIF
?
?" The computer will convert your minutes entries into hours."
?" To view the options menu, press [F1]. When you are finished typing,"
?" [Ctrl] and [End] will store your changes."
?
Wait to qt
BROWSE FIELDS PROJECT, MINUTES
CLEAR
?"Converting the minutes entries into hours..."
GO TOP
LOCATE FOR HOURS = 0 .AND. MINUTES > 0
DO WHILE .NOT. EOF()
STORE MINUTES TO MIN
HRS = INT(MIN/60) + ROUND((MIN/60 - INT(MIN/60)) / .25,0) * .25
REPLACE HOURS WITH HRS
CONTINUE
ENDDO
?"DONE."
WAIT " If you wish to rerun this program, press [R]." TO RE
IF UPPER(RE) <> "R" THEN
RPT = .F.
ENDIF
ENDDO
PACK
?" COMPILING DATA INTO EXPENSE FILE."
?" ... RELAX THIS MAY TAKE A FEW MINUTES. (BELL WILL RING.)"
SELECT 2
USE EXPENSES
SELECT 1
GO TOP
DO WHILE .NOT. EOF()
SELECT 2
LOCATE FOR PROJECTNUM = COMP->PROJECT .AND. TYPE = "C"
IF EOF() THEN
APPEND BLANK
REPLACE TYPE WITH "C"
REPLACE PROJECTNUM WITH COMP->PROJECT
REPLACE GLCODE WITH "402"
ENDIF
TEMP = AMOUNT
REPLACE AMOUNT WITH TEMP + COMP->HOURS
SELECT 1
SKIP 1
ENDDO
ZAP
?"DONE"
RETURN


  3 Responses to “Category : Dbase (Clipper, FoxBase, etc) Languages Source Code
Archive   : TMKPDB3.ZIP
Filename : COMPUTER.PRG

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/