Sign in to follow this  
Followers 0
PantZ4

What is worng with this trigger?

3 posts in this topic

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 :lmao:

Share this post


Link to post
Share on other sites



"For $x = 0 to 9" includes 9. You want 0 to 8.

No problem.

Thank you :lmao:.

Now it works!

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  
Followers 0