Jump to content

_IEFormElementSetValue using array


Recommended Posts

I'm trying to input text from an an excel file stored in an array using _IEFormElementSetValue

_IEFormElementSetValue($oQuery, $aResult[$i][0])

But i'm getting this error when i execute: Array variable has incorrect number of subscripts or subscript dimension range exceeded

I verified that i can use $aResult[$i][0]) in a msg box and it displays the result i want but for some reason I can't use it in _IEFormElementSetValue

Link to comment
Share on other sites

It's in a For loop.  The value of $i is 1 and the array is small.  3 columns and 5 rows.

For $i = 1 to UBound($aResult);
_IEAttach("3M")
_IELoadWait($oIE)

Local $oForm = _IEFormGetObjByName($oIE, "pricingSearchForm")
$oQuery = _IEFormElementGetObjByName($oForm, "productNum")

_IEFormElementSetValue($oQuery, $aResult[$i][0])

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...