home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP12_8.PRG ⌐ª
- *⌐ª Function: ╩╣╙├ @ ... EDIT ├ⁿ┴ε▒α╝¡▒╕╫ó╫╓╢╬╡─╖╢└². ⌐ª
- *⌐ª DBF & File: CUSTOMER.DBF ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- SET SAFETY OFF
- SET MESSAGE TO 24 CENTER
- CLEAR ALL
- CLEAR
-
- PUBLIC cur_scheme
- cur_scheme=SCHEME(17)
- ON READERROR DO errmsg WITH VARREAD()
- USE CUSTOMER
- COPY TO TEST CDX
- USE TEST
- DO WHILE .T.
- mCNO = SPACE(LEN(CNO)) && Character 5
- mCOMPANY = SPACE(LEN(company)) && Character 35
- mCONTACT = SPACE(LEN(contact)) && Character 20
- mADDRESS = SPACE(LEN(address)) && Character 30
- mCITY = SPACE(LEN(city)) && Character 15
- mZIP = SPACE(LEN(zip)) && Character 5
- mTAXRATE = 0.00 && Numeric 5
-
- @ 1,10 TO 22,75 " " COLOR /W+
- @ 4,15 SAY "╣½╦╛▒α║┼ : " GET mCNO WHEN choice() ;
- VALID keyin(TRIM(mCNO))
- @ 5,15 SAY "╣½╦╛├√│╞ : " GET mcompany
- @ 6,15 SAY " ┴¬╧╡╚╦ : " GET mcontact
- @ 7,15 SAY " ╡╪╓╖ : " GET maddress
- @ 8,15 SAY " │╟╩╨ : " GET mcity
- @ 9,15 SAY "╙╩╒■▒α┬δ : " GET mzip
- @10,15 SAY " ╦░┬╩ : " GET mtaxrate
- @12,15 SAY " ╦╡├≈ : "
- @13,13 EDIT COMMENTS ;
- SIZE 5,60 ;
- MESSAGE "<< ▒╕╫ó╫╓╢╬▒α╝¡╟° >>" ;
- VALID memocheck(COMMENTS) ;
- SCROLL ;
- COLOR SCHEME 17
- READ
- IF LASTKEY()=27
- SET COLOR OF SCHEME 17 TO (cur_scheme)
- CLEAR ALL
- CLEAR
- EXIT
- ENDIF
- ENDDO
- RETURN
-
- FUNCTION CHOICE
- PRIVATE myarray
- DIMENSION myarray(RECCOUNT())
- PRIVATE poisition,sele,I
- poisition=RECNO()
- GO TOP
- FOR I=1 TO ALEN(myarray)
- myarray(I)=CNO
- SKIP
- ENDFOR
- @ 4,29 MENU myarray,ALEN(myarray),10 TITLE "<< ╤í╘±╝╟┬╝▒α║┼ >>" SHADOW
- READ MENU TO sele
- IF !EMPTY(sele)
- KEYBOARD myarray(sele)
- GO sele
- ELSE
- GO poisition
- ENDIF
- RETURN .T.
-
- FUNCTION keyin
- PARAMETER nCNO
- PRIVATE nCNO
- IF EMPTY(nCNO)
- RETURN .F.
- ENDIF
- SET ORDER TO TAG CNO
- SEEK nCNO
- IF FOUND()
- KEYBOARD RTRIM(company)+CHR(13)+RTRIM(contact)+CHR(13)+RTRIM(address)
- KEYBOARD CHR(13)+RTRIM(city)
- KEYBOARD CHR(13)+RTRIM(zip)+STR(taxrate,5,2)
- SET ORDER TO
- RETURN .T.
- ELSE
- WAIT "╬▐╖¿╒╥╡╜─π╩Σ╚δ╡─╣½╦╛▒α║┼╩²╛▌, "+;
- "╟δ░┤╚╬╥╗╝ⁿ╝╠╨°╩Σ╚δ╗≥░┤ ESC ╝ⁿ═╦│÷.";
- WINDOW NOWAIT
- SET ORDER TO
- RETURN .F.
- ENDIF
- RETURN
-
- FUNCTION memocheck
- PARAMETER receive
- PRIVATE receive
- IF EMPTY(receive)
- RETURN .F.
- ENDIF
- RETURN .T.
-
-
- PROCEDURE errmsg
- PARAMETER mFIELD
- PRIVATE mFIELD
- DO CASE
- CASE UPPER(mFIELD)="MCNO"
- WAIT "─π▒╪╨δ╩Σ╚δ╣½╦╛▒α║┼, "+;
- "╟δ░┤╚╬╥╗╝ⁿ╝╠╨°╩Σ╚δ╗≥░┤ ESC ╝ⁿ═╦│÷.";
- WINDOW NOWAIT
-
- CASE UPPER(mFIELD)="COMMENTS"
- WAIT "─π▒╪╨δ╩Σ╚δ╩²╛▌, "+;
- "╟δ░┤╚╬╥╗╝ⁿ╝╠╨°╩Σ╚δ╗≥░┤ ESC ╝ⁿ═╦│÷." ;
- WINDOW NOWAIT
- ENDCASE
- RETURN