Jump to content

stringinstr or arraysearch dont work for me,..?


Aceguy
 Share

Recommended Posts

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.

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

  • Recently Browsing   0 members

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