DarkHo Posted January 18, 2010 Share Posted January 18, 2010 (edited) Hi all Im having some problems, when i remove file i see all the other files im trying to add If StringInStr($aFile_Array[$i], ".dem") Then but im getting error Func DeleteFromList() If $sFolderPath <> "" Then $delitefile = $sFolderPath&"\"&GUICtrlRead($List1) If FileExists($delitefile) then FileDelete($delitefile) $iIndex = _ArraySearch($aFile_Array, GUICtrlRead($List1)) If Not @Error Then _ArrayDelete($aFile_Array, $iIndex) $aFile_Array[0] -= 1 EndIf GUICtrlSetData($List1, "") For $i = 1 To $aFile_Array[0] GUICtrlSetData($List1, $aFile_Array[$i]) Next EndIf EndIf EndFunc I hop some one can help Edited January 18, 2010 by DarkHo Link to comment Share on other sites More sharing options...
DarkHo Posted January 18, 2010 Author Share Posted January 18, 2010 (edited) I Fix`t it thanks Edited January 18, 2010 by DarkHo 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