home *** CD-ROM | disk | FTP | other *** search
- SET CONSOLE OFF
- nl = chr(13)+chr(10)
- LOAD inport
- LOAD outport
-
- CLOSE PROCEDURE
- SET PROCEDURE TO tm_proc
-
- menu_ok = .t.
- DO WHILE menu_ok
- msg = nl+nl+nl+;
- " Welcome to the TMARC Database"+nl+nl+;
- " 1 - List Database"+nl+;
- " 2 - Input Records"+nl
- CALL outport WITH msg
- msg = " 3 - Update Record"+nl+;
- " 0 - Exit"+nl+nl+;
- "Enter your selection: "
- CALL outport with msg
- len = 1
- ans = space(2)
- CALL inport with ans
- DO CASE
-
- CASE ans = "1"
- DO tm_list WITH "nd_tmarc INDEX nd_tmnum"
-
- CASE ans = "2"
- DO tm_input WITH "nd_tmarc INDEX nd_tmnum"
-
- CASE ans = "3"
- DO tm_upd WITH "nd_tmarc INDEX nd_tmnum"
-
- CASE ans = "0"
- menu_ok = .f.
-
- OTHERWISE
- msg = nl+"Please enter only 0 thru 3"
-
- ENDCASE
-
- ENDDO
- DISP memory
-
- CLOSE PROCEDURE
- QUIT
-
-