Jump to content

Recommended Posts

Posted (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)

Zx80ocu.png

Edited by imitto
Posted (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 by InnI
Posted (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 by imitto
Posted (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 by InnI
Posted

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'

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
×
×
  • Create New...