oIE=CREATEOBJECT('internetexplorer.application') oIE.Navigate('D:\temp\test.htm') ?oie.Document.script.getarrayvalue("aTest","1") test.htm <html> <head> <script language="javaScript"> var aTest = new Array(2) aTest[0]='test0' aTest[1]='test1' aTest[2]='test2' function getarrayvalue(cVar,cId) { return eval(cVar+"["+cId+"]"); } </script> </head> <body> hello world </body> </html>Hope this helps,
>oIE=CREATEOBJECT('internetexplorer.application') >oIE.Navigate='test.htm' >oIE.Visible = .t. > >* thie following does not work and the question is what does? >? oIE.document.aTest.1 > >**** test.htm > ><html> ><head> ><script language="javaScript"> >var aTest = new Array(2) >aTest[0]='test0' >aTest[1]='test1' >aTest[2]='test2' ></script> ></head> ><body> >hello world ><script>alert(aTest[1])</script> ></body> ></html> >>