Back to product page

LastAction property


Specifies action to perform in the event.

Type

A FtpActions enumeration.

Syntax

  • Basic
object.LastAction  = value
The LastAction(object) syntax has these parts:
objectAn expression evaluating to an object of type FtpUser.

Remarks

Settings

The settings for value are:

Constant Value Description
Deny0 Deny execution of the action.
Allow 1 Allow to execute action.
SilentDeny2 Silently deny execution of the action.
SilentAllow 3 Silently allow to execute action.


LastAction property should be used only inside events, in environments (such as Delphi 6) where event arguments cannot return value back to wodFTPServer. Typical example in Delphi 6 is Connected event - you can try to set Action := Allow but wodFTPServer still receives Deny value. It's because your environment doesn't dispatch changed Action argument value back to wodFTPServer.

When this happens, you can use LastAction property instead. When this property is used, value of Action argument is ignored in wodFTPServer, and LastAction property value is used instead.

Platforms

Windows