Property

Method

Event

 

 

FtpUserName

Specifies the user name or gets the current user name information when Web Editor Control logs into an FTP server.

Syntax

    [get] HRESULT FtpUserName(
    BSTR* pVal
    );
    [put] HRESULT FtpUserName(
    BSTR newVal
    );

Parameters

[get] pVal

[out, retval] Gets the current user name.

[put] newVal

[in] Specifies the user name when Web Editor Control logs onto an FTP server. The default value is anonymous.

Return Values

0 (always)

Sample Codes

VBScript

dim files()
dim object
set object = Document.editForm
object.wec.FtpFileScope = 0
object.wec.FtpFileFilter = 0
object.wec.FtpOverwrite = 0
object.wec.FtpPassiveMode = 1
object.wec.FtpPort = 21
object.wec.FtpUserName = "admin" 'Specifies the user name.
object.wec.FtpPassword = "adminxxx"
object.wec.FtpUpload "www.myhome.co.kr", "/public_html", "index.htm"
'GET
filescope = object.wec.FtpFileScope
filefilter = object.wec.FtpFileFilter
overwrite = object.wec.FtpOverwrite
passivemode = object.wec.FtpPassiveMode
port = object.wec.FtpPort
username = object.wec.FtpUserName ' Gets the specified user name.
password = object.wec.FtpPassword 

See Also

FtpFileFilter, FtpFileScope, FtpOverwrite, FtpPassiveMode, FtpPassword, FtpPort, FtpUpload, OnFtpUploadComlated