>>>I have a program that launches IE5, navigates to a page and attempts to populate textboxes. I can access the page, even with frames and populate the textboxes, unless the form isn't named. The following works when the form is named:
>>>
>>>oie.document.frames(1).myform.username.value='test'
>>>
>>>but if it isn't a "named" form the following will not work:
>>>
>>>oie.document.frames(1).forms(0).username.value='test'
>>>
>>>What's up?
>>
>>haven't seen this one. you are sure that the form is the first one? Is this a page I could try?
>
>I'll make it available at
http://www.shelbynet.com/vfp/test.htmOk, 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