Back to product page

PreTranslateCommand method


Called before the command is sent to FTP server.

Type

None

Syntax

  • Basic
object.PreTranslateCommand Owner, Command
The PreTranslateCommand(object,Owner,Command) syntax has these parts:
objectAn expression evaluating to an object of type IwodFtpNotify.
OwnerRequired. A wodFtpDLXCom object.
CommandRequired. A String value. Command sent to the server.

Remarks

This method is called only if you implemented IwodFtpNotify interface in your application, and wodFtpDLX.Notification property has received reference to instance of your implementation.

This event can be used for monitoring commands that are sent to FTP (or FTPS) server before they are actually transmitted. At this point, you can change this data and it will be sent as you define it - without wodFtpDLX knowing anything about it.

Beware - what you're doing here is dangerous for wodFtpDLX. You may break its internal mechanism of behavior, and strange results may occur. But - to provide you with more freedom over what's going on 'under the hood', we have provided this event for advanced users.

Platforms

Windows