wodFtpDLX ActiveX Control - ActionNewFile Event
    
 

Description

Fires when user selects NewFile from the context menu.


Syntax

Private Sub object_ActionNewFile(DefaultName, Allow)



The ActionNewFile Event syntax has these parts:

Part Description
object A wodFtpDLX object.
DefaultName A String value. Represent new name to be used for the file, before user chooses appropriate name.
Allow A 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.