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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -