Send native FTP command to FTP server. This method is internal.
Parameter
-
lcCommand
-
FTP Command
Type |
Character |
Direction |
Input |
String value that contains the command to send to the FTP server.
-
liFlags
-
Value that contains the flags that control this method
Type |
Integer |
Direction |
Input |
Optional |
|
This can be set to one of the following values:
List of types
Value | Description |
FTP_TRANSFER_TYPE_ASCII
| ASCII mode |
FTP_TRANSFER_TYPE_BINARY
| Binnary mode. |
-
liContext
-
Flag of returning FTP command handle
Type |
Integer |
Direction |
Input |
Optional |
|
-
lihFTP
-
Handle of FTP command
Type |
Integer |
By reference |
|
Direction |
Input/Output |
Optional |
|
If you want receive this value, liContext must be true.
Source Code
LPARAMETERS INP lcCommand,INP liFlags,OPT_INP liContext,OPT_CHNGREF lihFTP
LOCAL fResult
liFlags=IIF(PCOUNT()<2,FTP_TRANSFER_TYPE_BINARY,liFlags)
liContext=IIF(PCOUNT()<3,0,liContext)
lihFTP=IIF(ISNULL(lihFTP),-1,0)
lcCommand = lcCommand + cNULL
fResult = FtpCommand(This.nConnect_Handle, IIF(lihFTP=-1,0,1), liFlags, @lcCommand,liContext,@lihFTP)
=This.GetExtendedError()
RETURN fResult = 1