home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP5_13.PRG ⌐ª
- *⌐ª Function: ╔╧╡»╩╜▓╦╡Ñ╤í╧ε╢α┤╬╤í╘±╫≈▒Ω╝╟╡─╖╢└² ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
-
- * ╢¿╥σ╥╗╕÷╧╘╩╛╩²╛▌┐Γ╔╧╡»╩╜▓╦╡Ñ:database
- DEFINE POPUP database FROM 2,10 PROMPT FILES LIKE *.DBF
- ON SELECTION POPUP database DO Database
-
- * ╢¿╥σ╥╗╕÷╧╘╩╛╩²╛▌┐Γ╫╓╢╬╡─╔╧╡»╩╜▓╦╡Ñ:fieldlist
- DEFINE POPUP fieldlist FROM 2,10 MARGIN MULTI MARK CHR(4);
- MESSAGE "Press <Enter> to choose fields, then <Esc> to exit"
- * ╩╣╙├▓╬╩² MULTI ╘╩╨φ═¼╩▒╤í╘±╢α╕÷╤í╧ε
- CLEAR
- @ 1,5 SAY "╤í╘±╥╗╕÷╩²╛▌┐Γ:"
- ACTIVATE POPUP database && ╝ñ╗ε▓╦╡Ñ╥╘╤í╘±╥╗╕÷╩²╛▌┐Γ
-
- IF NOT EMPTY(DBF()) && ╚τ╣√╤í╘±┴╦╥╗╕÷╩²╛▌┐Γ
- CLEAR
- mfieldlist = "" && ╫╓╢╬╤í╘±▒Σ┴┐
- @ 1,5 SAY "╤í╘±╫╓╢╬:"
- ACTIVATE POPUP fieldlist && ╝ñ╗ε▓╦╡Ñ╧╘╩╛╩²╛▌┐Γ╫╓╢╬
- DO Fieldlist && ╡≈╙├ FIeldlist ╥╘╫≈▒Ω╝╟
- BROWSE &mfieldlist && Σ»└└╦∙╤í╘±╡─╫╓╢╬
- ENDIF
- RELEASE POPUP database, fieldlist
- CLOSE DATABASES
- CLEAR
- RETURN
-
- * ╤í╘±╩²╛▌┐Γ┤ª└φ
- PROCEDURE Database
- USE PROMPT() && ┤≥┐¬╦∙╤í╘±╡─╩²╛▌┐Γ
- FOR mcount = 1 TO FCOUNT()
- DEFINE BAR mcount OF fieldlist PROMPT FIELD(mcount)
- * ├┐╕÷╫╓╢╬╢¿╥σ╬¬▓╦╡Ñ╡─╥╗╕÷╤í╧ε
- ENDFOR
- DEACTIVATE POPUP database
- RETURN
-
- * ╤í╘±╫╓╢╬┤ª└φ
- PROCEDURE Fieldlist
- FOR mcount = 1 TO CNTBAR("fieldlist") && ╢╘├┐╕÷╤í╧ε╫°┤ª└φ
- SET MARK OF BAR mcount OF fieldlist TO MRKBAR("fieldlist",mcount)
- * ╢╘├┐╕÷╤í╧ε╫°┤ª└φ
- IF MRKBAR("fieldlist", mcount) && ╤í╧ε▒╗▒Ω╝╟╡─┤ª└φ
- mfieldlist = mfieldlist + PRMBAR("fieldlist", mcount) + ","
- * ╘┌╫╓╢╬╤í╘±▒Σ┴┐╓╨╘÷╝╙╫╓╢╬║═╢║║┼
- ENDIF
- ENDFOR
- IF NOT EMPTY(mfieldlist) && ╚τ╣√╓┴╔┘╤í╘±┴╦╥╗╕÷╫╓╢╬
- mfieldlist = "FIELDS " + LEFT(mfieldlist, LEN(mfieldlist)-1)
- *╘┌╫╓╢╬╤í╘±▒Σ┴┐╓╨╘÷╝╙ "FILEDS", ▓ó│²╚Ñ╬▓▓┐╢║║┼.
- ENDIF
- RETURN