Jump to content

Single/Multi FileOpen Error


Recommended Posts

Can somebody tell me what's wrong with this script? It gives an error:

GUICtrlSetData($List1,$SplittedIAL[1] & $SplittedIAL[$i]) 
GUICtrlSetData($List1,$SplittedIAL[1] & ^ ERROR

$IAL = FileOpenDialog("Open audio file(s)",@DocumentsCommonDir,"MP3 files (*.mp3)|WAV files (*.wav)|all files (*.*)",1+2+4)
            $SplittedIAL = StringSplit($IAL, "|")
            $Elements = UBound($SplittedIAL)
            If $Elements = 2 Then
                GUICtrlSetData($List1,$IAL)
            Else
                For $i = $Elements to 1 Step -1
                    GUICtrlSetData($List1,$SplittedIAL[1] & $SplittedIAL[$i])
                Next
            EndIf

With the fileopen dialog you can select more then one file (1+2+4)

Thnx, Kip

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...