Solved

Internet Transfer Control...

Posted on 2000-03-26
5
343 Views
Last Modified: 2012-06-27
When using the Internet Transfer Control from a MouseOver event of a Label Control. I get an runtime error 35764 "still executing last request". I am trying to use the MouseOver event to update a stock pricing.

T.I.A
0
Comment
Question by:ampapa
5 Comments
 
LVL 28

Expert Comment

by:AzraSound
Comment Utility
can you post some code and show where the error is occurring
0
 
LVL 3

Accepted Solution

by:
wpsjr1 earned 100 total points
Comment Utility
There is a bug in the StillExecuting property of the inet control.  It returns 1 instead of -1 for True.  Read more about it in this article:

Q182152 FIX: StillExecuting Property Returns Incorrect Value
http://support.microsoft.com/support/kb/articles/Q182/1/52.ASP?LNG=ENG&SA=ALLKB&FR=0
0
 
LVL 27

Expert Comment

by:Ark
Comment Utility
Hi
I don't know MouseOver event in standard label control. I know MouseMove Event instead. It occure every time you move mouse over control and, of course, can fire error. Check Inet state before executing your request. For example:
Private Sub Label1_MouseMove(...)
  If Not Inet1.StillExecuting Then
     'your request
  Else
     'MsgBox "Still Executing"
  End If
End Sub
0
 
LVL 8

Author Comment

by:ampapa
Comment Utility

Private Sub Label14_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
symbols = Text5.Text
stock = Inet1.OpenURL("http://www.stockpoint.com/quote.asp?Exchange=US&Symbol=" & symbol & "&Company=&x=0&y=0")
MsgBox stock
End Sub

I am still not able to get past the runtime error. The above works if I use a message box after setting the symbols variable? What's up with that?

Thanks,
0
 
LVL 28

Expert Comment

by:AzraSound
Comment Utility
i'm not certain but it seems to me that a mouse move event will trigger several times as you pass over the label so perhaps its calling the openurl function more than once.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

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 …
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 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

12 Experts available now in Live!

Get 1:1 Help Now