home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP11_8.PRG ⌐ª
- *⌐ª Function: PUSH KEY, POP KEY ╡─╙ª╙├╖╢└². ⌐ª
- *⌐ª DBF & File: CUSTOMER.DBF ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- SET TEXTMERGE ON
- CLEAR ALL
- CLEAR
- ON KEY LABEL F2 DO subroute1
- ON KEY LABEL F3 DO subroute2
- ON KEY LABEL F4 DO subroute2
- ON KEY LABEL F5 DO subroute2
- @ 22,0 TO 24,79 DOUBLE COLOR /W+
- @ 23,8 SAY "[F2] ╩²╛▌┐Γ▒α╝¡ [F3] ╓╪╜¿╦≈╥² [F4] ├▄┬δ╚¿╧▐╢¿ [F5] ╩²╛▌┐Γ▒╕╖▌"
-
- DO WHILE .T.
- @ 5,29 TO 18,49 DOUBLE COLOR /W+
- @ 6,30 PROMPT " \<1. ╚╦╩┬╗∙▒╛╩²╛▌ "
- @ 7,30 PROMPT " \<2. ╣ñ╫╩╡╚╝╢╔Φ╢¿ "
- @ 8,30 PROMPT " \<3. ┐╝╟┌╩²╛▌╩Σ╚δ "
- @ 9,30 PROMPT " \<4. ╝╙░α╩²╛▌╩Σ╚δ "
- @ 10,30 PROMPT " \<5. ╗∙▒╛╣ñ╫╩ "
- @ 11,30 PROMPT " \<6. ╣ñ╫╩╡Ñ "
- @ 12,30 PROMPT " \<7. ╡≈╨╜┤ª└φ "
- @ 13,30 PROMPT " \<8. ─Ω╜┌╜▒╜≡ "
- @ 14,30 PROMPT " \<9. ┐█┐ε┤ª└φ "
- @ 15,30 PROMPT " \<A. ▒¿▒φ▓Θ╤»┤ª└φ "
- @ 16,30 PROMPT " \<B. ╧╡═│╬¼╗ñ "
- @ 17,30 PROMPT " \<E. ═╦│÷ "
- MENU TO choice
- IF choice = 12 .OR. choice = 0
- * ╟σ│²╦∙╙╨╡▒╟░╫≈╙├╓╨║═╢╤╒╗╓╨╡─ ON KEY LABLE ├ⁿ┴ε
- POP KEY ALL
- CLEAR ALL
- CLEAR
- SET TALK ON
- SET TEXTMERGE OFF
- CANCEL
- ELSE
- DO subroute2
- ENDIF
- ENDDO
- RETURN
-
- PROCEDURE subroute1
- * ░╤╘¡╫≈╙├╓╨╡─ ON KEY LABLE ├ⁿ┴ε┤µ╚δ╢╤╒╗, ▓ó╟σ│²╒Γ╨⌐├ⁿ┴ε
- PUSH KEY CLEAR
-
- USE (LOCFILE("CUSTOMER","DBF","╟δ╒╥╡╜ CUSTOMER.DBF ▓ó┤≥┐¬"))
- ON KEY LABEL F2 APPEND BLANK
- ON KEY LABEL F3 DO deleting
- ON KEY LABEL F4 GO TOP
- ON KEY LABEL F5 GO BOTTOM
- ON KEY LABEL F6 DO moving
- DEFINE WINDOW ok ;
- FROM INT((SROW()-20)/2),INT((SCOL()-70)/2) ;
- TO INT((SROW()-20)/2)+20,INT((SCOL()-70)/2)+70 ;
- TITLE "[F2] ╘÷╝╙╝╟┬╝ [F3] ╔╛│²╝╟┬╝ [F4] ╩╫╝╟┬╝ [F5] ─⌐╝╟┬╝ [F6] ╡┌ n║┼╝╟┬╝" ;
- DOUBLE ;
- CLOSE ;
- GROW ;
- FLOAT ;
- MINIMIZE ;
- SHADOW ;
- ZOOM ;
- COLOR SCHEME 6
-
- CHANGE WINDOW ok
- RELEASE WINDOWS ok
- USE
- POP KEY
- * ░╤╧╚╟░┤µ╚δ╢╤╒╗╡─ ON KEY LABLE ├ⁿ┴ε╚í│÷
- RETURN
-
- PROCEDURE subroute2
- DEFINE WINDOW notyet FROM 22,0 TO 24,79;
- DOUBLE COLOR SCHEME 7
- ACTIVATE WINDOW notyet
- @ 0,25 SAY " ╔╨╬┤╜¿┴ó, ╟δ░┤╚╬╥╗╝ⁿ╝╠╨° "
- =INKEY(10,"HM")
- DEACTIVATE WINDOW notyet
- RELEASE WINDOWS notyet
-
- PROCEDURE deleting
- IF DELETED()
- RECALL
- =telling("╝╟┬╝╥╤╗╓╕┤(RECALL),╟δ░┤╚╬╥╗╝ⁿ╝╠╨° ")
- ELSE
- DELETE
- =telling("╝╟┬╝╥╤╔╛│²(DELETE),╟δ░┤╚╬╥╗╝ⁿ╝╠╨° ")
- ENDIF
-
- FUNCTION telling
- PARAMETER check1,check2
- PRIVATE check1,check2
- DEFINE WINDOW del ;
- FROM INT((SROW()-5)/2),INT((SCOL()-57)/2) ;
- TO INT((SROW()-20)/2)+10,INT((SCOL()-57)/2)+56 ;
- TITLE " ╨┼╧ó┤░┐┌ " ;
- FLOAT ;
- SHADOW ;
- COLOR SCHEME 7
- ACTIVATE WINDOW del
- IF EMPTY(check2)
- \ <<check1>>
- ELSE
- \ <<check1>> <<check2>>
- ENDIF
- =INKEY(10,"HM")
- DEACTIVATE WINDOW del
- RELEASE WINDOWS del
- RETURN
-
- PROCEDURE moving
- ON READERROR =telling("=╩Σ╚δ╡─╩²╫╓╘┌ 1 ╓┴ ",RECCOUNT())
- DEFINE WINDOW pointer ;
- FROM INT((SROW()-5)/2),INT((SCOL()-57)/2) ;
- TO INT((SROW()-20)/2)+10,INT((SCOL()-57)/2)+56 ;
- TITLE " ╣ª─▄┤░┐┌ " ;
- SYSTEM ;
- FLOAT ;
- SHADOW ;
- COLOR SCHEME 7
- ACTIVATE WINDOW pointer
- @ WROWS()-1,0 SAY "╙√╥╞╡╜╡┌╝╕║┼╝╟┬╝: " GET poisition PICTURE "9999" ;
- DEFAULT 1 RANGE 1,RECCOUNT()
- READ
- IF LASTKEY()=27
- DEACTIVATE WINDOW pointer
- RELEASE WINDOWS pointer
- RETURN
- ELSE
- GO poisition
- ENDIF
- DEACTIVATE WINDOW pointer
- RELEASE WINDOWS pointer
- RETURN