Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with InetCtls.Inet.1
Message
From
25/09/2006 09:42:11
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Problem with InetCtls.Inet.1
Miscellaneous
Thread ID:
01156888
Message ID:
01156888
Views:
472
Does anyone know how to use the "InetCtls.Inet.1" object? I've got the following code:
RELEASE oiNet
LOCAL oiNet
oiNet = CREATEOBJECT("InetCtls.Inet.1")
oiNet.Protocol= 5  && icHTTPS
oiNet.RequestTimeout = 60
oiNet.url = "someURL.com/names.nsf?Login"
oiNet.Execute(oiNet.url, "POST", "=&username=someuser&password=somepw&redirectto=someNewURL")
This code sometimes works. The problem that I'm experiencing is that many times, the property oiNet.StillExecuting is .T. at the line where I CREATEOBJECT! This prevents me from continuing to do an actual Execute() method and I get the following error:
OLE IDispatch exception code 0 from Inet: Still executing last request..
Why is this happening? How can the Stillexecuting=.T. at the time I first create the object? All other properties are empty at that time. What would it be executing?

The weird thing is that occasionally it works, but once the Stillexecuting=.T., it's very difficult for me to get it to work again.

TIA
Mike
Next
Reply
Map
View

Click here to load this message in the networking platform