Jump to content

Recommended Posts

Posted (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 by boludoz
  • boludoz changed the title to _ArraySearch not work for me.
  • Developers
Posted
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.
  :)

Posted

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.

Posted
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

Posted
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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...