home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP8_5.PRG ⌐ª
- *⌐ª Function: ╩╣╙├╧┬└¡▒φ, ┤░┐┌, SHOW GETS ║═ READ├ⁿ┴ε╡─╖╢└² ⌐ª
- *⌐ª DBF & File: CUSTOMER.DBF ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- DEFINE WINDOW example1 FROM 0, 0 TO 21,22 ;
- FLOAT CLOSE SHADOW COLOR SCHEME 5;
- TITLE " ╧┬└¡▒φ╥╗ "
- DEFINE WINDOW example2 FROM 0,24 TO 21,52 ;
- FLOAT CLOSE SHADOW COLOR SCHEME 7;
- TITLE " ╧┬└¡▒φ╢■ "
- DEFINE WINDOW example3 FROM 0,54 TO 21,76 ;
- FLOAT CLOSE SHADOW COLOR SCHEME 8;
- TITLE " ╧┬└¡▒φ╚² "
-
- SELECT DISTINCT city FROM customer INTO ARRAY cityarray
-
- DEFINE POPUP poparray SCROLL MARGIN MARK CHR(251)
- FOR I=1 TO ALEN(cityarray)
- DEFINE BAR I OF poparray PROMPT (cityarray(I,1))
- ENDFOR
- SELECT customer
-
- DEFINE POPUP popstru PROMPT STRUCTURE ;
- MARGIN ;
- MARK CHR(251) ;
- SCROLL
-
- DEFINE POPUP popfield PROMPT FIELD company ;
- MARGIN ;
- MARK CHR(251) ;
- SCROLL
- ACTIVATE WINDOW example1
- @ 1,0 SAY PADC("╩²╛▌╜ß╣╣:",WCOLS())
-
- @ 2, 2 GET liststructure POPUP popstru SIZE 11,20 ;
- DEFAULT FIELD(1,"customer") WHEN refresh() ;
- VALID dispitem(liststructure) COLOR SCHEME 5
- @ 13,2 SAY liststructure SIZE 1,18
-
- ACTIVATE WINDOW example2
-
- @ 1, 0 SAY PADC("╫╓╢╬─┌╚▌:",WCOLS())
- @ 2, 2 GET listfield POPUP popfield SIZE 11,20 ;
- DEFAULT company WHEN refresh() VALID dispitem(listfield) ;
- COLOR SCHEME 7
- @ 13,2 SAY listfield SIZE 1,18
-
-
- ACTIVATE WINDOW example3
- @ 1,0 SAY PADC("│╟╩╨├√│╞:",WCOLS())
- @ 2,2 GET arrayitem POPUP poparray SIZE 11,20 ;
- DEFAULT cityarray(1);
- WHEN refresh() VALID dispitem(arrayitem);
- COLOR SCHEME 9
- @ 13,2 SAY arrayitem SIZE 1,18
- @ 17,2 GET ok FUNCTION ;
- "*HT \!\<OK;\?\<Cancel" DEFAULT 1 SIZE 1,6
-
- READ CYCLE SHOW popshow()
-
- RELEASE WINDOW example1,example2, example3
- RELEASE POPUPS popstru, popfield, poparray
-
- FUNCTION refresh
- SHOW GETS OFF
-
- FUNCTION dispitem
- PARAMETER item
- PRIVATE item,string
- string = "<< ─π╤í╘±╡─╩╟: "+ALLTRIM(item)+" ╟δ░┤╚╬╥╗╝ⁿ╗≥╩≤▒Ω╫≤░┤┼ñ╝╠╨° >>"
- DEFINE WINDOW mywin FROM 18,2 TO 22,77 ;
- TITLE " ╨┼╧ó┤░┐┌ " ;
- SHADOW ;
- COLOR SCHEME 7
- ACTIVATE WINDOW mywin
- @ 1,0 SAY PADC(string,WCOLS())
- =INKEY(10,"HM")
- DEACTIVATE WINDOW mywin
- RELEASE WINDOWS mywin
-
- FUNCTION popshow
- STORE WOUTPUT() TO currwind
- DO CASE
- CASE WOUTPUT() = "EXAMPLE1"
- @ 13,2 SAY liststructure SIZE 1,18
- CASE WOUTPUT() = "EXAMPLE2"
- @ 13,2 SAY listfield SIZE 1,18
- CASE WOUTPUT() = "EXAMPLE3"
- @ 13,2 SAY arrayitem SIZE 1,18
- ENDCASE
- RETURN .T.