Back to product page

PreTranslateReply method


Called before wodFtpDLX evaluates received reply from the server.

Type

None

Syntax

  • Basic
object.PreTranslateReply Owner, Code, Reply
The PreTranslateReply(object,Owner,Code,Reply) syntax has these parts:
objectAn expression evaluating to an object of type IwodFtpNotify.
OwnerRequired. A wodFtpDLXCom object.
CodeRequired. An Integer value. Reply code returned by the server.
ReplyRequired. A String value. Reply text returned by 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 replies FTP server sent as result of our commands, before it is actually received by wodFtpDLX. At this point you can change Code and Reply values to anything you like - and wodFtpDLX will think it received reply as you defined it here.

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