I use the FTP control on one of my VB6 forms fine. I am now trying to use it from a VB6 class. I copied the example code from this URL:
http://doc.xceedsoft.com/products/XceedFtp/
…but get an error ‘Invalid use of New keyword’ on this line:
Set XceedFtp1 = New XceedFtp
I should note that I had to move this line to the Declarations area due to another error message:
Dim WithEvents XceedFtp1 As XceedFtp
so it now reads:
Private WithEvents XceedFtp1 As XceedFtp
Thanks for any help!
Edited to say if I take out the New keyword I get this message:
Variable not defined (XceedFtp).
However, if I go to Project / References I have ‘Xceed FTP Library v1.1’ checked, and I am using the control on a form elsewhere in the same program without incident.
Imported from legacy forums. Posted by LeisureTime (had 3361 views)