home *** CD-ROM | disk | FTP | other *** search
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐┤
- *⌐ª Program: EXP12_1.PRG ⌐ª
- *⌐ª Function: ╜½▒╕╫ó╫╓╢╬┐╜▒┤╡╜╬─▒╛╬─╝■╡─╙ª╙├╖╢└². ⌐ª
- *⌐ª DBF & File: SONG.DBF SONG.FPT ⌐ª
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐╝
- SET TALK OFF
- CLEAR ALL
- CLEAR
-
- check=expmemo("SONG","CONTENT","MYFILE")
- IF check
- WAIT " ╩Σ│÷│╔╣ª, ╟δ░┤╚╬╥╗╝ⁿ╗≥╩≤▒Ω╡─╫≤░┤┼ñ╝╠╨°" WINDOW
- TYPE myfile.TXT
- ELSE
- WAIT " ╩Σ│÷╩º░▄, ╟δ░┤╚╬╥╗╝ⁿ╗≥╩≤▒Ω╡─╫≤░┤┼ñ╝╠╨°" WINDOW
- ENDIF
-
-
- *⌐░⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- *⌐ª Program: EXPMEMO.PRG
- *⌐ª Function: Exporting Memo Field
- *⌐ª Usage: EXPMEMO(<DbfName>,<MemoName>,<TxtFile>[,<Start>][,<End>])
- *⌐╕⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ⌐ñ
- FUNCTION expmemo
- PARAMETER DbfName,MemoName,TxtFile,Start,End
- PRIVATE pre_saf
- DO CASE
- CASE EMPTY(DbfName) .OR. EMPTY(MemoName) .OR. EMPTY(TxtFile)
- WAIT "─π╓┴╔┘╨δ╓╕╢¿: ╩²╛▌┐Γ├√ ▒╕╫ó╫╓╢╬├√ ╩Σ│÷╬─╝■├√, "+;
- "╟δ░┤╚╬╥╗╝ⁿ╗≥╩≤▒Ω╡─╫≤░┤┼ñ╝╠╨°.";
- WINDOW
- RETURN .F. && ╚⌠▓╗│╔╣ª, ╘≥┤½╗╪ .F.
-
- CASE TYPE("DbfName") # "C" .OR. TYPE("MemoName") # "C" ;
- .OR. TYPE("TxtFile") # "C"
- WAIT "─π╩Σ╚δ╡─: <╩²╛▌┐Γ├√>╗≥<▒╕╫ó╫╓╢╬├√>╗≥<╩Σ│÷╬─╝■├√>"+;
- "▓╗╩╟╫╓╖√┤«, ╟δ░┤╚╬╥╗╝ⁿ╗≥╩≤▒Ω╡─╫≤░┤┼ñ╝╠╨°.";
- WINDOW
- RETURN .F. && ╚⌠▓╗│╔╣ª, ╘≥┤½╗╪ .F.
-
- CASE !EMPTY(Start) .AND. !EMPTY(End) .AND. Start>End
- WAIT "┬▀╝¡┤φ╬≤, ╟δ░┤╚╬╥╗╗≥╩≤▒Ω╡─╫≤░┤┼ñ╝ⁿ╝╠╨°." WINDOW
- RETURN .F.
- ENDCASE
-
- pre_saf=SET("SAFETY")="ON"
- SET SAFETY OFF
- USE (LOCFILE((DbfName),"DBF"))
- IF EMPTY(Start)
- Start=1
- ENDIF
- IF EMPTY(End)
- End=RECCOUNT()
- ENDIF
-
- SCAN FOR RECNO()>=Start .AND. RECNO()<=End
- COPY MEMO (MemoName) TO (TxtFile) ADDITIVE
- ENDSCAN
- USE
- IF pre_saf
- SET SAFETY ON
- ENDIF
- RETURN .T. && ╚⌠│╔╣ª, ╘≥┤½╗╪ .T.