Welcome to the Xceed Community | Help
Community Search  
More Search Options

Formless use of FTP control, error in example

Sort Posts: Previous Next
  •  11-28-2008, 5:10 PM Post no. 17267

    Formless use of FTP control, error in example

    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.

     

  •  12-02-2008, 3:57 PM Post no. 17309 in reply to 17267

    Re: Formless use of FTP control, error in example

    This should work fine.  Can you try to do this in a sample project, to see if it works well?
    André
    Software Developer
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.