Sign in to follow this  
Followers 0
Aceguy

stringinstr or arraysearch dont work for me,..?

3 posts in this topic




_ArraySearch()

Share this post


Link to post
Share on other sites

here is my array.

0=6

1=11

2=12

3=11

4=11

5=12

6=11

how could i return the last occurence of 12 in the array. please :)

hi, you will need to use _Arraysearch, BUT! it will only find the first occurnce! so, you will need to delete the first one meaning _Arrayinsert:

#include <Array.au3>

_ArrayInsert ( $avArray, $iElement [, $sValue ] )

and put $Ielement what Arraysearch gives you, also, $sValue should hold $s="", then do an _ArraySearch again.

Share this post


Link to post
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
Sign in to follow this  
Followers 0