c# - Iterating an AX 4 Container getting out of range error -
i trying iterate ax container using buisnessconnector. index out of range exception on below code, though container returns count of 4. happens on first iteration of loop.
axaptacontainer path = (axaptacontainer)ax.callstaticclassmethod("documenthandling", "itemdata", "1000000"); (int = 0; < path.count; i++) { string somestring = path.get_item(i).tostring(); }
i using ax 4 this.
i think container starts @ 1.
so: for (int = 1; <= path.count; i++)
or obvious?
Comments
Post a Comment