OnResult Event  
 

The command issued by the client has been processed by the server.

Syntax

Sub object_OnResult ( [Index As Integer,] ByVal ClientId As Variant, ByVal Command As Variant, ByVal ResultCode As Variant )

Parameters

ClientId
An integer value which uniquely identifies the client session.
Command
A string that specifies the command that was issued by the client.
ResultCode
An integer value that specifies the result code that was sent to the client.

Remarks

The OnResult event occurs after the server has processed a command issued by the client. This event will inform the application whether the command that was issued by the client was successful or not. If the command was successful, then other related events such as OnDownload may also fire after this event.

The Command parameter that is passed to the event handler specifies only the command itself and not any additional arguments that were included. Use the CommandLine property to obtain the complete command line that was issued by the client.

The ResultCode parameter is a three-digit numeric code that is used to indicate success or failure. These codes are defined as part of the File Transfer Protocol standard, with values in the range of 200-299 indicating success. Values in the range of 400-499 and 500-599 indicate failure due to various error conditions. Examples of such failures would be attempting to access a file that does not exist, issuing an unrecognized command or attempting to perform a privileged operation.

See Also

ClientDirectory Property, OnCommand Event,