Jump to content
Sign in to follow this  
d4rk

I can't use _ArrayDelete()

Recommended Posts

d4rk

i don't know but it's still there

$DirContent is successfully created

$InContent=_FileListToArray($DirContent,"*.*")
$Delindex=_ArrayBinarySearch($InContent,"index.dat");delete index.dat file from the array
If Not @error Then
_ArrayDelete($InContent,$Delindex)
EndIf

thanjs


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
Jos

Are you sure your Array is properly sorted since else the _ArrayBinarySearch() will not work right.

You could also use _ArraySearch() which doesn't require a sorted array or first sort the array with _ArraySort()

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
d4rk

I'm sorry, i'm being lazy...

Edited by d4rk

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
Jos

Why ? Didn't _ArrayDelete() work for you ?

#include<array.au3>
Dim $a[5] = [4,"a","b","c","d"]
_ArrayDisplay($a)
_ArrayDelete($a,0)
_ArrayDisplay($a)

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×