Solved

Inet control

Posted on 1998-12-16
2
167 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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 …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

810 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