Aceguy Posted February 6, 2008 Share Posted February 6, 2008 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 [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
rasim Posted February 6, 2008 Share Posted February 6, 2008 _ArraySearch() Link to comment Share on other sites More sharing options...
erezlevi Posted February 6, 2008 Share Posted February 6, 2008 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 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