Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE automation and frames
Message
From
08/02/2000 13:26:51
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00328927
Message ID:
00329001
Views:
30
FWIW, this isn't the first tim I've run into funkiness with the frames collection. I was trying to parse a page with 3 frames once, and got to where I could use:

oIE.Document.Frames(0).Document.Frames(0).Document.Frames(0).Document.Frames(0)

ad nauseam without causing an error. What was happening, was that any frames collection within the top frames collection was returning a reference to the topmost document.

I feel your frustration. I think this one is safe to call a bug.

>AAARRRRGGGHHH - those damned elementary school programmers at MS!@#!@#!#$#@@!~.
>Suddenly, I have the urge to kill something!
>
>Thanks!<g>
>
>
>>Ok, I get the same error as you, but can resolve it by assigning the frame to its own object reference first:
>>
>>oIE = CREATEOBJECT("InternetExplorer.application")
>>oIE.navigate("http://www.shelbynet.com/vfp/test.htm")
>>oFrame2 = oIE.Document.Frames(1)
>>oframe2.Document.Forms(0).UserName.value = "Howdy"
>>oframe2.Document.Forms(0).password.value = "password"
>>oframe2.Document.Forms(0).Submit()
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform