PantZ4 Posted October 7, 2006 Share Posted October 7, 2006 Func Search() For $i = 0 to 9 $search = FileFindFirstFile($files[$i]) If $search = -1 Then If $startsearch = 1 Then $label[$i] = GUICtrlCreateLabel($files[$i] & " = Notfound",20,30) Else MsgBox(16, "Error: File not founded", "Error: " & $files[$i] & " not founded",3) Exit EndIf EndIf If $greencode = 1 Then GuiCtrlSetData($progress, (($i + 10) * 10)) Next EndFuncoÝ÷ Ù«¢+Ù¥´ÀÌØí¥±Ílåt(ÀÌØí¥±ÍlÁtôÅÕ½ÐìÅÕ½Ðì(ÀÌØí¥±ÍlÅtôÅÕ½ÐìÅÕ½Ðì(ÀÌØí¥±ÍlÉtôÅÕ½ÐìÅÕ½Ðì(ÀÌØí¥±ÍlÍtôÅÕ½ÐìÅÕ½Ðì(ÀÌØí¥±ÍlÑtôÅÕ½ÐìÅÕ½Ðì(ÀÌØí¥±ÍlÕtôÅÕ½ÐìÅÕ½Ðì(ÀÌØí¥±ÍlÙtôÅÕ½ÐìÅÕ½Ðì(ÀÌØí¥±ÍlÝtôÅÕ½ÐìÅÕ½Ðì(ÀÌØí¥±ÍlátôÅÕ½ÐìÅÕ½Ðì)¥´ÀÌØí±±låt And here is what it says C:\Programmer\AutoIt3\Examples\GUI\Run(221) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $search = FileFindFirstFile($files[$i]) $search = FileFindFirstFile(^ ERROR What is worng? Thank you Link to comment Share on other sites More sharing options...
jvanegmond Posted October 7, 2006 Share Posted October 7, 2006 "For $x = 0 to 9" includes 9. You want 0 to 8. No problem. github.com/jvanegmond Link to comment Share on other sites More sharing options...
PantZ4 Posted October 7, 2006 Author Share Posted October 7, 2006 "For $x = 0 to 9" includes 9. You want 0 to 8.No problem.Thank you .Now it works! 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