Back to product page

ActionNewFile event


Fires when user selects NewFile from the context menu.

Syntax

  • Basic
Private Sub object_ActionNewFile(DefaultName, Allow)
The ActionNewFile(object,DefaultName,Allow) syntax has these parts:
objectA wodFtpDLX object.
DefaultNameA String value. Represent new name to be used for the file, before user chooses appropriate name.
AllowA Boolean value. When set to False then action is ignored.

Remarks

Available only in ActiveX (GUI) version!

This event is fired when user selects 'New file' from context menus. Inside this event, you can define new default name that will be offered to user to create it. You can show, for example, dialog box and ask user for new name, and then supply it in DefaultName argument.

If you don't want to allow users to create new files, and set Allow argument to False.

wodFtpDLX internally executes PutData method with empty data member - thus creating empty file on remote system.

Platforms

Windows