home *** CD-ROM | disk | FTP | other *** search
- * FILE NAME TRACKPRO.PRG
- * MAIN PROGRAM TRACK_IT.PRG
- * PROGRAMMER DAVID IRWIN
- * DATE WRITTEN 12/15/84
- * LAST UPDATE 01/08/85
- *
- *
- * This is the procedure file for the TRACK_IT system called by
- * track_it.prg
- *
- *
- * Mainmenu clears the screen, paints the main menu,
- * and gets and validates the menu choice.
-
- * Use SET COLOR for color monitors only unless otherwise noted.
-
- PROCEDURE mainmenu
- CLEAR
- TEXT
-
- + + + TRACK-IT PLUS + + +
-
- SEARCH FUNCTION CRITERIA
-
- [F2] Last Name
- [F3] Company Name
- [F4] Product Name
- [F5] Date
- [F6] Status
-
-
- ADDITIONAL FUNCTIONS
-
- [F7] Add New Records
- [F8] Do a dBASE III Command
- [F9] Quit
- [F10] Use Personal list
- ENDTEXT
- choice = " "
- DO WHILE val(choice) < 2 .OR. val(choice) > 10
- choice = " "
- @ 20,25 SAY "Your Choice ? " GET choice
- READ
- ENDDO WHILE val(choice) < 2 .OR. val(choice) > 10
- CLEAR
- RETURN
- **************************************************
- PROCEDURE if_blank
- IF string = " "
- looper = .T.
- ELSE
- SEEK upper(trim(string))
- ENDIF # blanks
- RETURN
- ***************************************************
- PROCEDURE tstring
- string = space(tblanks)
- center = 40 - int(len(tseek) + 9 + tblanks)/2
- @ 10,center SAY tseek + " to Find " GET string
- READ
- RETURN
- **************************************************
- PROCEDURE tscreen
- TEXT
-
-
- First name
- Last name
-
- Product
-
- Company name
-
- Address
-
- City State Zip
-
- Phone
-
- = = = = = = = = = = = = Update Area = = = = = = = = = = =
-
- Status
-
- Last contact
-
- Next Call
- ENDTEXT
- RETURN
- ************************************************
- PROCEDURE tsays
- IF action # "U"
- * SET color TO g/b,w/r,s
- @ 20,30 SAY fname
- @ 03,30 SAY lname
- @ 05,30 SAY product
- @ 07,30 SAY company
- @ 09,30 SAY address
- @ 11,30 SAY city
- @ 11,52 SAY state
- @ 11,61 SAY zip
- @ 13,30 SAY phone
- ENDIF action # "U"
- * SET color TO~ g/b,w/gr,
- @ 17,30 SAY status
- @ 19,30 SAY date_last
- @ 21,30 SAY date_next
- * SET color TO gr/b,w/r,
- RETURN
- *************************************************
- PROCEDURE tgets
- IF action # "U"
- @ 02,30 GET fname PICTURE "!XXXXXXXXX"
- @ 03,30 GET lname PICTURE "!XXXXXXXXXXXXXXXXXXX"
- @ 05,30 GET product PICTURE "!XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- @ 07,30 GET company PICTURE "!XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- @ 09,30 GET address PICTURE "!XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
- @ 11,30 GET city PICTURE "!XXXXXXXXXXXXXX"
- @ 11,52 GET state PICTURE "!!"
- @ 11,61 GET zip PICTURE "99999-9999"
- @ 13,30 GET phone PICTURE "9-999-999-9999"
- ENDIF action # "U"
- @ 17,30 GET status PICTURE "!"
- @ 19,30 GET date_last
- @ 21,30 GET date_next
- READ
- RETURN
- ******************************************************
- PROCEDURE contline
- * SET color TO r/w,w/r,
- @ 23,13 SAY "(N)ext (P)revious (U)udate (E)dit (M)emo (D)one";
- GET action PICTURE "!"
- * SET color TO gr/b,w/r,
- READ
- RETURN
- *****************************************************
- PROCEDURE exitmenu
- CLEAR
- @ 8,34 SAY "Exit Menu:"
- @ 10,28 SAY "(1) Quit to dBASE III"
- @ 12,28 SAY "(2) Quit to DOS"
- @ 14,28 SAY "(3) Return to Program"
- STORE " " TO choice2
- DO WHILE choice2 < "1" .OR. choice2 > "3"
- @ 16,32 SAY "Your choice ? " GET choice2
- STORE " " TO choice2
- READ
- ENDDO WHILE choice2 < "1" .OR. choice2 > "3"
- RETURN