Help with classes 
Author Message
 Help with classes

I am trying to use an ftp class I have downloaded from the net.

I get the following error: "object variable or with block variable not set"

I have tried setting the object using the create object method as follows:
    Set objFTP = CreateObject("FTP_TEST.FTP_CLASS")

Here is the code I am using:

Private Sub Form_Load()
    Dim objFTP As FTP_CLASS

    'set the properties for the connection
    objFTP.sServerName = ""
    objFTP.sUserID = "anonymous"

    objFTP.lTransferType = TRANSFER_TYPE_ASCII


Craig Whiteman

Please remove "MYBOXERSHORTS" to email me.

Sat, 11 Sep 2004 08:08:00 GMT  
 Help with classes

Set objFTP as new FTP_CLASS

in your form load event. Make sure that in your form unload event you have

Set objFTP  = Nothing

Bazza (EC)
Sanity is only a figment of my imagination

ICQ: 26476008

"Satans greatest trick, was convincing man he didnt exsist".

Guvf Rznvy Nqqerff jnf fpenzoyrq jvgu EBG13.

Sat, 11 Sep 2004 08:36:29 GMT  
 [ 2 post ] 

 Relevant Pages 

1. PLEASE, PLEASE Help With Class Module!

2. Help with Classes

3. Help with Class Modules

4. Help with Classes

5. Help: XmlDocument Class

6. Need Help Debugging Class Library

7. help with classes and collections

8. SOS PLEASE Help with classes

9. Need Help with Classes

10. Help with Classes

11. Need Help with Classes and Collections



Powered by phpBB® Forum Software