Inet Control gives me error
Inet Control gives me error
Inet Control gives me error
Inet Control gives me error
Inet Control gives me error
Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error
Inet Control gives me error Inet Control gives me error
Inet Control gives me error
Go Back  Xtreme Visual Basic Talk > > > Inet Control gives me error


Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2014, 01:05 AM
mitesh_l mitesh_l is offline
Newcomer
 
Join Date: Feb 2014
Posts: 1
Default Inet Control gives me error


Hi
I am first time using Inet control to upload files on my FTP server.
but when i try to execute my code, and click on command button i get this error

object variable and with block variable not set
(See attache two screen shot)

any help plz.
Attached Images
File Type: png Code.PNG (18.8 KB, 2 views)
File Type: png error.PNG (12.4 KB, 1 views)
Reply With Quote
  #2  
Old 04-07-2014, 10:58 AM
loquin's Avatar
loquinInet Control gives me error loquin is offline
Google Hound

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,400
Default

You haven't instantiated the control.

Either declare as a new instance of the Inet control, or Set it to a new instance after instantiating it. i.e.
  1. Code:
    Dim Inet1 as NEW Inet ' (my underlining) , OR
  2. Code:
    Dim Inet1 as Inet
    Set iNet1 = New Inet
    ' Your Code goes here
    Set Inet1 = Nothing

Form A is simpler, and the control is automatically released when it goes out of scope, but form B can be faster under some conditions. In your case, since you are using the 'With' construct, the performance increase would be miniscule (a single conditional if/then/else would be generated in the object code, outside a loop, to check that the object is a valid one.)
__________________
Lou
"I have my standards. They may be low, but I have them!" ~ Bette Middler
"It's a book about a Spanish guy called Manual. You should read it." ~ Dilbert
"To understand recursion, you must first understand recursion." ~ unknown

Last edited by loquin; 04-07-2014 at 11:05 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Inet Control gives me error
Inet Control gives me error
Inet Control gives me error Inet Control gives me error
Inet Control gives me error
Inet Control gives me error
Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error Inet Control gives me error
Inet Control gives me error
Inet Control gives me error
 
Inet Control gives me error
Inet Control gives me error
 
-->