imitto Posted March 6, 2017 Posted March 6, 2017 (edited) Hi! I just playing around with _ArrayMin for my next project, but seems like it's not working. I think the code is OK, but I always get the value of $aArray[2][1], not col 2's lowest value (see attached image) Edited March 6, 2017 by imitto
InnI Posted March 6, 2017 Posted March 6, 2017 (edited) 54 minutes ago, imitto said: always get the value of $aArray[2][1] Not value of [2][1]. You get the value of [0][2], because you searching from index 0 to index 0. _ArrayMin($aArray, 1, -1, -1, 2) Edited March 6, 2017 by InnI
imitto Posted March 6, 2017 Author Posted March 6, 2017 (edited) 15 minutes ago, InnI said: Not value of [2][1]. You get the value of [0][2], because you searching from index 0 to index 0. _ArrayMin($aArray, 1, -1, -1, 2) Thank you! Then it's not OK in the help file, the code is made of it. Edited March 6, 2017 by imitto
InnI Posted March 6, 2017 Posted March 6, 2017 (edited) 16 minutes ago, imitto said: Then it's not OK in the help file, the code is made of it. Seems like you use help file from old version. Click to _ArrayMin function in your or my post and read current help (for AutoIt 3.3.14.2). Edited March 6, 2017 by InnI
mikell Posted March 6, 2017 Posted March 6, 2017 Hmm. imitto is right. The sample code in the current 3.3.14.2 help still uses : _ArrayMin($aArray, 1, 0, 0, 2) BTW this should have been mentioned in AutoIt changelog as a 'script breaking change'
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now