Jump to content

_ArrayMin problem on 2D array


Recommended Posts

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)

Zx80ocu.png

Edited by imitto
Link to comment
Share on other sites

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 by InnI
Link to comment
Share on other sites

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 by imitto
Link to comment
Share on other sites

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 by InnI
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

×
×
  • Create New...