home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP5_8.PRG ⌐ª
- *⌐ª Function: Σ»└└╦∙╤í╘±╩²╛▌┐Γ╦∙╤í╘±╡─╫╓╢╬╡─╖╢└² ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK ON
- * ╩╣╤í╘±╫╓╢╬╩▒, ╞┴─╗╧╘╩╛╦∙╤í╡─╫╓╢╬
-
- * ╢¿╥σ╥╗╕÷╧╘╩╛╩²╛▌┐Γ╬─╝■╡─╔╧╡»╩╜▓╦╡Ñ:database
- DEFINE POPUP database FROM 2,10 PROMPT FILES LIKE *.DBF
- ON SELECTION POPUP database DO Database
-
- * ╢¿╥σ╥╗╕÷╧╘╩╛╩²╛▌┐Γ╫╓╢╬╡─╔╧╡»╩╜▓╦╡Ñ:fieldlist
- DEFINE POPUP fieldlist FROM 2,10 PROMPT STRUCTURE MARGIN;
- MESSAGE "Press <Enter> to mark or unmark fields, then <Esc> to exit"
- ON SELECTION POPUP fieldlist DO Fieldlist
-
- CLEAR
- @ 1,5 SAY " ╤í╘±╥╗╕÷╩²╛▌┐Γ:"
- ACTIVATE POPUP database
- * ╝ñ╗ε▓╦╡Ñ╥╘╤í╘±╥╗╕÷╩²╛▌┐Γ
-
- IF NOT EMPTY(DBF())
- * ╚τ╣√╤í╘±┴╦╥╗╕÷╩²╛▌┐Γ
- CLEAR
- @ 1,5 SAY " ╤í╘±╩²╛▌┐Γ╫╓╢╬:"
- mfieldlist = "" && ╫╓╢╬╤í╘±▒Σ┴┐
- ACTIVATE POPUP fieldlist && ╝ñ╗ε▓╦╡Ñ╧╘╩╛╩²╛▌┐Γ╫╓╢╬
- IF NOT EMPTY(mfieldlist)
- * ╚τ╣√╓┴╔┘╤í╘±┴╦╥╗╕÷╫╓╢╬
- mfieldlist = "FIELDS " + LEFT(mfieldlist, LEN(mfieldlist)-1)
- *╘┌╫╓╢╬╤í╘±▒Σ┴┐╓╨╘÷╝╙ "FILEDS", ▓ó│²╚Ñ╬▓▓┐╢║║┼.
- ENDIF
- BROWSE &mfieldlist
- * Σ»└└╦∙╤í╘±╡─╩²╛▌┐Γ║═╦∙╤í╘±╡─╫╓╢╬
- ENDIF
- RELEASE POPUP database, fieldlist
- SET TALK OFF
- CLOSE DATABASES
- RETURN
-
- * Process database file list selection
- PROCEDURE Database
- USE PROMPT() && ┤≥┐¬╦∙╤í╘±╡─╩²╛▌┐Γ
- DEACTIVATE POPUP database
- RETURN
-
- PROCEDURE Fieldlist
- IF NOT PROMPT() $ mfieldlist
- mfieldlist = mfieldlist + PROMPT() + ","
- * ╘┌╫╓╢╬╤í╘±▒Σ┴┐╓╨╘÷╝╙╫╓╢╬║═╢║║┼
- ENDIF
- RETURN