Hello folks,
I’ve been using the NotesFTP Class (from the Sandbox) successfully for a while now. We’ve recently changed the port on our FTP server from 21 to 5032.
I am able to hardcode the port number in the Const INTERNET_INVALID_PORT_NUMBER and it works, but I’d like to make it a parameter. This is where I run into problems.
I am calling Connect:
objFTP.Connect servername$, ftpPort%, username$, pswd$, 0
where ftpPort is Dimmed as Integer and set to 5032.
In the Class I have:
Sub Connect(server$, port%, user$, password$, flags&)
<>
Me.hConnection = InternetConnect(Me.hLib, server$, port%, user$, password$, INTERNET_SERVICE_FTP, flags&, 0)
I get a TypeMismatch of FTPPORT pointing to where I call “Connect” when I try to save my script. The Class saves fine. I have tried Integer, Double and Long… same results.
I’ve also tried just the hostname:5032, no luck.
Am I missing something obvious here?
Thx in advance.