WaitingForZion Posted February 20, 2010 Share Posted February 20, 2010 I've defined a function accepting three parameters, one of which is an array using byref. My function calls the UDF _ArrayAdd to add newly defined arrays to the array passed to the function. The function appears to run properly so far, but when I try to access one of the elements of the added arrays from the referenced main array, AutoIt generates a range error. I attempted to access the 2nd element of the sub array like this: $main_array. This is clearly not a index out of bounds error. I've tested my function from within, and the successful execution of my function confirms that there is no error as to the number of elements in the array. The problem is, after I am done adding elements to the array in my function, I am unable to access the elements of the sub-array, or as it seems even the sub arrays themselves. I'd prefer not to post my code here, because I want to keep my project without competitors for now, but if it is absolutely necessary to show my code in order for you to help me, just ask, and I will display it. Spoiler "This then is the message which we have heard of him, and declare unto you, that God is light, and in him is no darkness at all. If we say that we have fellowship with him, and walk in darkness, we lie, and do not the truth: But if we walk in the light, as he is in the light, we have fellowship one with another, and the blood of Jesus Christ his Son cleanseth us from all sin. If we say that we have no sin, we deceive ourselves, and the truth is not in us. If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness. If we say that we have not sinned, we make him a liar, and his word is not in us." (I John 1:5-10) Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now