Hi all,
I am trying to delete a specific element from a 1D array. But it doesn't delete the specific item. Here is my code
Local $Items_InFolder
Local $element
Local $Search_String
Local $Comparison
$Items_InFolder= _FileListToArray(@ScriptDir)
$Search_String = "- AutoIt Forums_files"
For $element In $Items_InFolder
$Comparison = StringInStr($element,$Search_String)
If $Comparison < 1 Then
_ArrayDelete($Items_InFolder,$element)
EndIf
Next