home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP8_1.PRG ⌐ª
- *⌐ª Function: ╩╣╙├╧┬═╞░┤┼ñ Push Buttons ╡─╖╢└² ⌐ª
- *⌐ª DBF & File: CUSTOMER.DBF ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- CLOSE ALL
- DEFINE WINDOW cust FROM 2,3 TO 12,57 ;
- FLOAT SHADOW COLOR SCHEME 5
- DEFINE WINDOW panel2 FROM 2, 61 TO 14,78 ;
- FLOAT SHADOW COLOR SCHEME 9
- USE (LOCFILE("customer.dbf","dbf","╟δ╒╥╡╜╩²╛▌┐Γ customer.dbf, ▓ó╤í╚í╦ⁿ"))
- ACTIVATE WINDOW cust NOSHOW
-
- @ 3, 3 SAY "╣½╦╛├√│╞"
- @ 3,14 GET customer.company SIZE 1,36
- @ 5, 3 SAY " ┴¬┬τ╚╦"
- @ 5,14 GET customer.contact SIZE 1,36
- @ 7, 2 SAY "│╟╩╨/╣·╝╥"
- @ 7,14 GET customer.city SIZE 1,21
- @ 7,38 SAY "╙╩▒α"
- @ 7,45 GET customer.zip
- @ 0, 3 SAY "┐═╗º▒α║┼ #: "
- @ 0,15 SAY cno SIZE 1,6
- @ 0,36 SAY "╝╟┬╝▒α║┼ #: "
- @ 0,46 SAY RECNO() SIZE 1,3
-
- ACTIVATE WINDOW panel2
- @ 1,2 GET act PICTURE "@*VN \<1.╡┌╥╗╧ε;\<2.╟░╥╗╧ε;"+;
- "\<3.╧┬╥╗╧ε;\<4.╫ε║≤╧ε;\?\<5.═╦ │÷" ;
- SIZE 1,12,1 DEFAULT 0 VALID actvalid()
-
- READ CYCLE SHOW refresh()
- RELEASE WINDOWS cust,panel2
-
- FUNCTION actvalid
- DO CASE
- CASE act = 1
- GO TOP
- CASE ACT = 2
- SKIP -1
- IF BOF()
- GO TOP
- ENDIF
- CASE ACT = 3
- SKIP 1
- IF EOF()
- GO BOTTOM
- ENDIF
- CASE act = 4
- GO BOTTOM
- CASE act = 5
- CLEAR READ
- ENDCASE
- SHOW GETS
- RETURN 0
-
- FUNCTION refresh
- STORE WOUTPUT() TO currwind
- IF SYS(2016) = "cust" OR SYS(2016) = "*"
- ACTIVATE WINDOW cust SAME
- @ 0,15 SAY cno SIZE 1,6
- @ 0,46 SAY RECNO() SIZE 1,3
- ENDIF
- IF NOT EMPTY(currwind)
- ACTIVATE WINDOW (currwind) SAME
- ENDIF
- RETURN .T.