Jump to content
Sign in to follow this  

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
                For $i = $Elements to 1 Step -1
                    GUICtrlSetData($List1,$SplittedIAL[1] & $SplittedIAL[$i])

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

Thnx, Kip

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.