Home Forums ActiveX components Xceed FTP for ActiveX Formless use of FTP control, error in example

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #42801 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    This should work fine.  Can you try to do this in a sample project, to see if it works well?

    Imported from legacy forums. Posted by André (had 4718 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.