Solved

Inet control

Posted on 1998-12-16
2
165 Views
Last Modified: 2013-12-26
Using OpenURL, with SP3 installed, I still dont get the entire file heres my code (copied from BooksOnline)

Dim strURL As String
Dim intFile As Integer

strURL = "http://www.stomped.com/main.html"  
intFile = FreeFile()

Open App.Path & "\plandata.txt" For Output As #intFile
    Write #intFile, Inet1.OpenURL(strURL)
Close #intFile

Now I use VB6 at work, and this code works there under VB6 sp1. I only have VB5 at home, but I DO have SP3 installed and it only gets 2k of the file......Is there another way or a fix?? I searched thru the MS Tech Support site and found only the "fixed in SP2" articles.
0
Comment
Question by:jcorbin
2 Comments
 
LVL 1

Expert Comment

by:jf26028
ID: 1489038
you could use the winsock control.  It is very simple to use and will get the same job done.
0
 
LVL 18

Accepted Solution

by:
mdougan earned 100 total points
ID: 1489039
Since you are nesting the Write function with the OpenURL method, perhaps the OpenURL method has yet to return all of the data to the INet control before the Write function finishes.  Try doing the openUrl first.  Then, I think that there is an "IsBusy" property of the INet control (or something equivilant) that you can use to "DoEvents" until it is False.  Then, do your write statement against the INet document property.  (I'm doing this from memory, so forgive me if I don't have the exact names of things.)

MD
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now