
432
Function #6 .fcRETR
Download file from FTP server
Syntax:
CALL
"FTP.FN3"
.fcRETR
FTPHANDLE%,
SERV.FNAME$,
CLNT.FNAME$,
CRLF.TYPE%, CRLF.MODE%, REPLY% [,FLD$]
[,DISP.MODE%]
Description:
This function downloads, from the current directory on the FTP server to
the BHT, the specified file using the specified parameters.
Parameters: FTPHANDLE% FTP client handle
SERV.FNAME$ Name of file to download from FTP server
CLNT.FNAME$ Name for file on handy terminal. Leaving this
unspecified ("") uses the name in
SERV.FNAME$ instead.
Note: SERV.FNAME$ and CLNT.FNAME$ must have the same type (file
extension): user program (.PD3), extension library (.FN3 or .EX3), or data
file (all other extensions). Otherwise, the run-time error 32h is the result.
CRLF.TYPE% Line delimiter
.ftCRLF
0
CR-LF combination
(Treat CR-LF combinations as delimiters. Use
this value when the data file delimits records
with CR-LF combinations.)
.ftCR
1
LF
(Treat LFs as delimiters. Use this value when
the data file delimits records with LFs.)
.ftLF
2
CR
(Treat CRs as delimiters. Use this value when
the data file delimits records with CRs.)
.ftNONE
3
None
Use this value when the data file does not
delimit records.
CRLF.MODE% Treatment of line delimiters in records and trailing
spaces in fields
Note:
CRLF.MODE% will be ignored for files except data
files.
.ftRcdSepa
0
Treat line delimiters in records as SEPARATORS.
TRIM trailing spaces in fields.
Comentarios a estos manuales