boludoz Posted August 11, 2021 Share Posted August 11, 2021 (edited) It doesn't return an error if it can't find something, it just returns 1. It is nothing new that _ArraySearch Fails. Edited August 11, 2021 by boludoz Link to comment Share on other sites More sharing options...
Developers Jos Posted August 11, 2021 Developers Share Posted August 11, 2021 2 minutes ago, boludoz said: It doesn't return an error if it can't find something, it just returns 1. It is nothing new that _ArraySearch Fails. What showing your code that is failing? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
boludoz Posted August 11, 2021 Author Share Posted August 11, 2021 I am using the latest beta available. Link to comment Share on other sites More sharing options...
Developers Jos Posted August 11, 2021 Developers Share Posted August 11, 2021 Fine... but I meant your scriptcode! Musashi 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
boludoz Posted August 11, 2021 Author Share Posted August 11, 2021 Ok, wait a minute dear Jos. JockoDundee 1 Link to comment Share on other sites More sharing options...
boludoz Posted August 11, 2021 Author Share Posted August 11, 2021 Sorry this is awesome, but I don't know if I'm tired or what, but it doesn't happen by adding a "> -1", sorry for wasting your time. Link to comment Share on other sites More sharing options...
pseakins Posted August 11, 2021 Share Posted August 11, 2021 8 hours ago, boludoz said: It doesn't return an error if it can't find something, it just returns 1. Any value other than zero IS an error. So, if it returns a 1 that means there was an error.. Phil Seakins Link to comment Share on other sites More sharing options...
Developers Jos Posted August 11, 2021 Developers Share Posted August 11, 2021 9 minutes ago, pseakins said: Any value other than zero IS an error. So, if it returns a 1 that means there was an error.. Are you sure? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
pseakins Posted August 12, 2021 Share Posted August 12, 2021 10 hours ago, Jos said: Are you sure? I was referring to @error in my reply, which, unless I am mistaken always returns non zero if there was an error. I don't think OP was referring to the return value, which will be either -1 or the array index. He was saying it was 1 so it must have been @error he was looking at as 1 can only be a valid return value. I didn't look that closely at the question and I didn't check the help for _ArrayDisplay(). Am I sure? On reflection, I think so. Phil Seakins Link to comment Share on other sites More sharing options...
Developers Jos Posted August 12, 2021 Developers Share Posted August 12, 2021 3 hours ago, pseakins said: I was referring to @error in my reply, which, unless I am mistaken always returns non zero if there was an error. 👍 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
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